Displaying 1 result from an estimated 1 matches for "agiletortoise".
2007 Mar 15
1
Helper content_tag and Blocks
...world!
<% end -%>
# => <div class="strong"><p>Hello world!</p></div>
Unfortunately blocks only work in erb and not as helper methods. This
problem already has a ticket http://dev.rubyonrails.org/ticket/7432
Greg Pierce has come up with a fix
http://greg.agiletortoise.com/2007/03/01/rails-content_tag-block-fix but
I''m looking for more.
I''d like to write something along the lines of
content_tag :table do
content_tag :tr do
content_tag :td, "first"
content_tag :td, "second"
end
end
With Greg''s fix, that...