rails/rails — pull request #6556 by lest (2012-05-30 20:19:58+00:00)
Title: accept a block in button_to helper

Make possible to use a block in button_to helper if button text is hard
to fit into the name parameter, e.g.:

<%= button_to [:make_happy, @user] do %>
Make happy <%= @user.name %>
<% end %>
# => "

#

#
# Make happy <%= @user.name %>
#
#

#

"