mmmh, I guess
def button
content_tag :div, :class => "button"
end
will to the trick. but it is just because it is simple... If you have
something complex, you hav to play with capture()
Another simple way, is to play with partials. you can use
def button
render :layout => '/shared/button'
end
# app/view/shared/_button.html.erb
<div class="button">
<%= yield %>
</div>
hope it will help
--
Gabriel Laskar <bibi...@gmail.com>