diff options
author | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2012-05-30 13:33:32 -0700 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2012-05-30 13:33:32 -0700 |
commit | fd97266a3f684bf1d41f702251fcb69ad9bd6dda (patch) | |
tree | 67608320ffc575a2e53a85dbfa992e2654d8d057 /actionpack/CHANGELOG.md | |
parent | aab0d4e2c67df1bf05ddcb2b90bee8e5dfea5909 (diff) | |
parent | ab7a80ea22c94a006788eddfa3b92123b4031cb6 (diff) | |
download | rails-fd97266a3f684bf1d41f702251fcb69ad9bd6dda.tar.gz rails-fd97266a3f684bf1d41f702251fcb69ad9bd6dda.tar.bz2 rails-fd97266a3f684bf1d41f702251fcb69ad9bd6dda.zip |
Merge pull request #6556 from lest/patch-1
accept a block in button_to helper
Diffstat (limited to 'actionpack/CHANGELOG.md')
-rw-r--r-- | actionpack/CHANGELOG.md | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/actionpack/CHANGELOG.md b/actionpack/CHANGELOG.md index 2e7b3190fc..b907eea3c1 100644 --- a/actionpack/CHANGELOG.md +++ b/actionpack/CHANGELOG.md @@ -1,5 +1,21 @@ ## Rails 4.0.0 (unreleased) ## +* 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>" + + *Sergey Nartimov* + * change a way of ordering helpers from several directories. Previously, when loading helpers from multiple paths, all of the helpers files were gathered into one array an then they were sorted. Helpers from different |