1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Update f.button docs to reflect real label implementation

This commit is contained in:
Carlos Antonio da Silva 2012-02-14 07:46:24 -02:00
parent 2aaa9da6fd
commit 06599ffb5f

View file

@ -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}"
#