By the way, if you put some html at the top of the page, e.g. %p Index.html.haml - wrap do - page_title "Teams List View"
Your wrap() method will double render the whole page. Based on my experiments with haml, I would never consider using a multiline ruby block that contains a rails helper. The results are too unpredictable. Both of these syntaxes do what you want (without concat): - wrap do - page_title "Teams List View" - wrap do = page_title "Teams List View" Note that in this code: content_tag(:div, capture(&block), :class =>"generic_header") ...capture() does indirectly what block.call() does directly. -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.