Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
clarify wording around second arg to options_for_select
  • Loading branch information
fcheung committed Jan 25, 2009
1 parent add4e87 commit bf26f42
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion railties/doc/guides/source/form_helpers.txt
Expand Up @@ -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) %>
Expand Down

0 comments on commit bf26f42

Please sign in to comment.