diff options
author | Marcel Molina <marcel@vernix.org> | 2005-10-12 03:43:28 +0000 |
---|---|---|
committer | Marcel Molina <marcel@vernix.org> | 2005-10-12 03:43:28 +0000 |
commit | 7aa1ba7ff0f156ab726ff838957eeb2804d2df54 (patch) | |
tree | f7801401a22b0fd01bb1bf858dfdda6f518e4021 /actionpack/lib/action_view/helpers/form_options_helper.rb | |
parent | 6823f57b27b61e4b38154fc750189fb84ebe3b02 (diff) | |
download | rails-7aa1ba7ff0f156ab726ff838957eeb2804d2df54.tar.gz rails-7aa1ba7ff0f156ab726ff838957eeb2804d2df54.tar.bz2 rails-7aa1ba7ff0f156ab726ff838957eeb2804d2df54.zip |
Misc doc fixes (typos/grammar/etc). Closes #2445.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2537 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'actionpack/lib/action_view/helpers/form_options_helper.rb')
-rw-r--r-- | actionpack/lib/action_view/helpers/form_options_helper.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/actionpack/lib/action_view/helpers/form_options_helper.rb b/actionpack/lib/action_view/helpers/form_options_helper.rb index 1daa5782de..261ff76ae0 100644 --- a/actionpack/lib/action_view/helpers/form_options_helper.rb +++ b/actionpack/lib/action_view/helpers/form_options_helper.rb @@ -127,11 +127,11 @@ module ActionView options_for_select.join("\n") end - # Returns a string of option tags that has been compiled by iterating over the +collection+ and assigning the + # Returns a string of option tags that have been compiled by iterating over the +collection+ and assigning the # the result of a call to the +value_method+ as the option value and the +text_method+ as the option text. # If +selected_value+ is specified, the element returning a match on +value_method+ will get the selected option tag. # - # Example (call, result). Imagine a loop iterating over each +person+ in <tt>@project.people</tt> to generate a input tag: + # Example (call, result). Imagine a loop iterating over each +person+ in <tt>@project.people</tt> to generate an input tag: # options_from_collection_for_select(@project.people, "id", "name") # <option value="#{person.id}">#{person.name}</option> # @@ -143,7 +143,7 @@ module ActionView ) end - # Returns a string of option tags, like options_from_collection_for_select, but surrounds them by <optgroup> tags. + # Returns a string of option tags, like options_from_collection_for_select, but surrounds them with <optgroup> tags. # # An array of group objects are passed. Each group should return an array of options when calling group_method # Each group should should return its name when calling group_label_method. |