aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_view/helpers/form_helper.rb
diff options
context:
space:
mode:
authorCarlos Antonio da Silva <carlosantoniodasilva@gmail.com>2012-02-14 07:46:24 -0200
committerCarlos Antonio da Silva <carlosantoniodasilva@gmail.com>2012-02-14 07:46:24 -0200
commit06599ffb5f1c9a3f05f6da546acc1d93fb1a7331 (patch)
treecf2f53f4d98d0647ae5b75ba4d46717b5fcdcaa9 /actionpack/lib/action_view/helpers/form_helper.rb
parent2aaa9da6fda40dff3cc0ed393114bfd41fa04840 (diff)
downloadrails-06599ffb5f1c9a3f05f6da546acc1d93fb1a7331.tar.gz
rails-06599ffb5f1c9a3f05f6da546acc1d93fb1a7331.tar.bz2
rails-06599ffb5f1c9a3f05f6da546acc1d93fb1a7331.zip
Update f.button docs to reflect real label implementation
Diffstat (limited to 'actionpack/lib/action_view/helpers/form_helper.rb')
-rw-r--r--actionpack/lib/action_view/helpers/form_helper.rb10
1 files changed, 5 insertions, 5 deletions
diff --git a/actionpack/lib/action_view/helpers/form_helper.rb b/actionpack/lib/action_view/helpers/form_helper.rb
index bdfef920c5..79a190a07b 100644
--- a/actionpack/lib/action_view/helpers/form_helper.rb
+++ b/actionpack/lib/action_view/helpers/form_helper.rb
@@ -1084,14 +1084,14 @@ module ActionView
# <% end %>
#
# In the example above, if @post is a new record, it will use "Create Post" as
- # submit button label, otherwise, it uses "Update Post".
+ # button label, otherwise, it uses "Update Post".
#
- # Those labels can be customized using I18n, under the helpers.submit key and accept
- # the %{model} as translation interpolation:
+ # Those labels can be customized using I18n, under the helpers.submit key
+ # (the same as submit helper) and accept the %{model} as translation interpolation:
#
# en:
# helpers:
- # button:
+ # submit:
# create: "Create a %{model}"
# update: "Confirm changes to %{model}"
#
@@ -1099,7 +1099,7 @@ module ActionView
#
# en:
# helpers:
- # button:
+ # submit:
# post:
# create: "Add %{model}"
#