Updated the documentation for helpers.label.

This commit is contained in:
José Valim 2010-01-07 10:42:01 +01:00
parent a25ef06956
commit 598456b68b

@ -505,7 +505,7 @@ def fields_for(record_or_name_or_array, *args, &block)
# Returns a label tag tailored for labelling an input field for a specified attribute (identified by +method+) on an object
# assigned to the template (identified by +object+). The text of label will default to the attribute name unless a translation
# is found in the current I18n locale (through views.labels.<modelname>.<attribute>) or you specify it explicitly.
# is found in the current I18n locale (through helpers.label.<modelname>.<attribute>) or you specify it explicitly.
# Additional options on the label tag can be passed as a hash with +options+. These options will be tagged
# onto the HTML as an HTML element attribute as in the example shown, except for the <tt>:value</tt> option, which is designed to
# target labels for radio_button tags (where the value is used in the ID of the input tag).
@ -517,8 +517,8 @@ def fields_for(record_or_name_or_array, *args, &block)
# You can localize your labels based on model and attribute names.
# For example you can define the following in your locale (e.g. en.yml)
#
# views:
# labels:
# helpers:
# label:
# post:
# body: "Write your entire text here"
#