aboutsummaryrefslogtreecommitdiffstats
path: root/ci
diff options
context:
space:
mode:
authorSergey Nartimov <just.lest@gmail.com>2012-05-30 23:15:15 +0300
committerSergey Nartimov <just.lest@gmail.com>2012-05-30 23:29:13 +0300
commitab7a80ea22c94a006788eddfa3b92123b4031cb6 (patch)
treead192e3c91b97e574d81b61b09bb475ecd64bb3b /ci
parent1376f4cab1eb27cd54718a7e6d7f50215c7340e5 (diff)
downloadrails-ab7a80ea22c94a006788eddfa3b92123b4031cb6.tar.gz
rails-ab7a80ea22c94a006788eddfa3b92123b4031cb6.tar.bz2
rails-ab7a80ea22c94a006788eddfa3b92123b4031cb6.zip
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 <strong><%= @user.name %></strong> <% end %> # => "<form method="post" action="/users/1/make_happy" class="button_to"> # <div> # <button type="submit"> # Make happy <strong>Name</strong> # </button> # </div> # </form>"
Diffstat (limited to 'ci')
0 files changed, 0 insertions, 0 deletions