Hi,
I want to write a method that acts like actionview’s form_for method.
Meaning:
<% fancy_div do |div| %>
ruby is awesome
should produce something like:
ruby is awesome
I tried
def test
return “
#{yield”}
"end
But this only returns the contents (the yield part) and doesn’t wrap
it around the divs.
Any suggestions?
Thanks!
–Andrei