aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_view/helpers/form_options_helper.rb
diff options
context:
space:
mode:
authorDavid Heinemeier Hansson <david@loudthinking.com>2005-02-07 14:15:53 +0000
committerDavid Heinemeier Hansson <david@loudthinking.com>2005-02-07 14:15:53 +0000
commit098fa943565e06dafa67ca59ccf433939d2941b4 (patch)
tree9f660c2aac3e9988d0e1664bac91d884ad2ec3de /actionpack/lib/action_view/helpers/form_options_helper.rb
parent9b0fd9d00d8b6e6c3b16bc513b454185fe169454 (diff)
downloadrails-098fa943565e06dafa67ca59ccf433939d2941b4.tar.gz
rails-098fa943565e06dafa67ca59ccf433939d2941b4.tar.bz2
rails-098fa943565e06dafa67ca59ccf433939d2941b4.zip
Fixed documentation snafus #575, #576, #577, #585
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@525 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.rb12
1 files changed, 6 insertions, 6 deletions
diff --git a/actionpack/lib/action_view/helpers/form_options_helper.rb b/actionpack/lib/action_view/helpers/form_options_helper.rb
index 4f0a0fbfe0..aa448764da 100644
--- a/actionpack/lib/action_view/helpers/form_options_helper.rb
+++ b/actionpack/lib/action_view/helpers/form_options_helper.rb
@@ -9,7 +9,7 @@ module ActionView
include ERB::Util
# Create a select tag and a series of contained option tags for the provided object and method.
- # The option currenlty held by the object will be selected, provided that the object is available.
+ # The option currently held by the object will be selected, provided that the object is available.
#
# This can be used to provide a default set of options in the standard way: before rendering the create form, a
# new model instance is assigned the default options and bound to @model_name. Usually this model is not saved
@@ -40,14 +40,14 @@ module ActionView
# options_for_select([["Dollar", "$"], ["Kroner", "DKK"]])
# <option value="$">Dollar</option>\n<option value="DKK">Kroner</option>
#
- # options_for_select([ "VISA", "Mastercard" ], "Mastercard")
- # <option>VISA</option>\n<option selected="selected">Mastercard</option>
+ # options_for_select([ "VISA", "MasterCard" ], "MasterCard")
+ # <option>VISA</option>\n<option selected="selected">MasterCard</option>
#
# options_for_select({ "Basic" => "$20", "Plus" => "$40" }, "$40")
# <option value="$20">Basic</option>\n<option value="$40" selected="selected">Plus</option>
#
- # options_for_select([ "VISA", "Mastercard", "Discover" ], ["VISA", "Discover"])
- # <option selected="selected">VISA</option>\n<option>Mastercard</option>\n<option selected="selected">Discover</option>
+ # options_for_select([ "VISA", "MasterCard", "Discover" ], ["VISA", "Discover"])
+ # <option selected="selected">VISA</option>\n<option>MasterCard</option>\n<option selected="selected">Discover</option>
def options_for_select(container, selected = nil)
container = container.to_a if Hash === container
@@ -87,7 +87,7 @@ module ActionView
# 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.
#
- # html_option_groups_from_collection(@continents, "countries", "contient_name", "country_id", "country_name", @selected_country.id)
+ # html_option_groups_from_collection(@continents, "countries", "continent_name", "country_id", "country_name", @selected_country.id)
#
# Could become:
# <optgroup label="Africa">