Permalink
Browse files

clarify wording around second arg to options_for_select

  • Loading branch information...
1 parent add4e87 commit bf26f42d77eca61acc9affecd5a2aec9ad61beda @fcheung fcheung committed Jan 25, 2009
Showing with 1 addition and 1 deletion.
  1. +1 −1 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) %>

0 comments on commit bf26f42

Please sign in to comment.