rails/rails — pull request #6631 by yuki24 (2012-06-05 08:18:19+00:00)
Title: Accept a block in FormHelper#button

Hi,

I would like to use a block in button helper like this:

```erb
<%= form_for @message do |f| %>

<%= f.button do %>
Send a message to <%= @user.name %>
<% end %>
# =>
# Send a message to Name
#

<% end %>
```

This pull request is similar to #6556, but for *FormHelper#button*. I also added the example section containing 2 examples. Thanks!