From bf26f42d77eca61acc9affecd5a2aec9ad61beda Mon Sep 17 00:00:00 2001 From: Frederick Cheung Date: Sun, 25 Jan 2009 12:30:31 +0000 Subject: clarify wording around second arg to options_for_select --- railties/doc/guides/source/form_helpers.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'railties') diff --git a/railties/doc/guides/source/form_helpers.txt b/railties/doc/guides/source/form_helpers.txt index f53cb1b140..055dc20553 100644 --- a/railties/doc/guides/source/form_helpers.txt +++ b/railties/doc/guides/source/form_helpers.txt @@ -394,7 +394,7 @@ Knowing this, you can combine `select_tag` and `options_for_select` to achieve t <%= select_tag(:city_id, options_for_select(...)) %> ---------------------------------------------------------------------------- -`options_for_select` allows you to pre-select an option by specify its value as the second argument: +`options_for_select` allows you to pre-select an option by passing its value. ---------------------------------------------------------------------------- <%= options_for_select([['Lisbon', 1], ['Madrid', 2], ...], 2) %> -- cgit v1.2.3