I'm currently working on linking a css
file to a haml
layout template
Within the ApplicationHelper
class, I have a method to properly generate html
module ApplicationHelper
def styletag(sheet_name)
"<link rel='stylesheet' href='/assets/stylesheets/#{sheet_name}.css'>"
end
end
Additionally, I'm trying to link it to the layout template
!!! 5
%html
%head
%title Rotten Potatoes!
= stylesheet_link_tag 'application'
= styletag 'default'
= javascript_include_tag 'application'
= csrf_meta_tags
%body
= yield
However, it appears that haml
is not recognizing it as a tag and is displaying it as text.