Skip to content

Commit

Permalink
Update f.button docs to reflect real label implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
carlosantoniodasilva committed Feb 14, 2012
1 parent 2aaa9da commit 06599ff
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions actionpack/lib/action_view/helpers/form_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -1084,22 +1084,22 @@ def submit(value=nil, options={})
# <% 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}"
#
# It also searches for a key specific for the given object:
#
# en:
# helpers:
# button:
# submit:
# post:
# create: "Add %{model}"
#
Expand Down

0 comments on commit 06599ff

Please sign in to comment.