Displaying 1 result from an estimated 1 matches for "generic_head".
Did you mean:
generic_read
2011 Sep 04
4
same html elements rendering twice on page
hey all,
My index.html.haml:
- wrap do
- page_title "Teams List View"
application_helper.rb:
def page_title(title)
content_tag :h1, title
end
def wrap(&block)
concat(content_tag(:div, capture(&block), :class =>
"generic_header"))
end
I load in browser and get:
<div class="generic_header"><h1>Teams List View</h1></div>
<div class="generic_header"><h1>Teams List View</h1></div>
It''s rendered twice. Not sure why. I invoke the wrap itera...