diff options
Diffstat (limited to 'railties/doc/guides')
-rw-r--r-- | railties/doc/guides/source/form_helpers.txt | 2 |
1 files changed, 1 insertions, 1 deletions
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) %> |