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:
parent
2aaa9da6fd
commit
06599ffb5f
1 changed files with 5 additions and 5 deletions
|
@ -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}"
|
||||
#
|
||||
|
|
Loading…
Reference in a new issue