diff options
author | Evan Farrar <evanfarrar@gmail.com> | 2012-08-15 19:52:52 -0400 |
---|---|---|
committer | Evan Farrar <evanfarrar@gmail.com> | 2012-08-15 19:52:52 -0400 |
commit | 7c584256d1d74a72bc9eed9db5aee71e27006515 (patch) | |
tree | 8e0fda9c9a63f927047b6a63bdec582693d84037 /actionpack/lib/action_view | |
parent | 176f0888d85da38e3ae95f74b419d22e347d7a81 (diff) | |
download | rails-7c584256d1d74a72bc9eed9db5aee71e27006515.tar.gz rails-7c584256d1d74a72bc9eed9db5aee71e27006515.tar.bz2 rails-7c584256d1d74a72bc9eed9db5aee71e27006515.zip |
Make a doc example output in match actual output
Make doc output in grouped_options_for_select divider example match
actual output. The options groups were in backwards order of actual.
Diffstat (limited to 'actionpack/lib/action_view')
-rw-r--r-- | actionpack/lib/action_view/helpers/form_options_helper.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/actionpack/lib/action_view/helpers/form_options_helper.rb b/actionpack/lib/action_view/helpers/form_options_helper.rb index e4f4ebc7ff..2bb526a539 100644 --- a/actionpack/lib/action_view/helpers/form_options_helper.rb +++ b/actionpack/lib/action_view/helpers/form_options_helper.rb @@ -501,14 +501,14 @@ module ActionView # # Possible output: # <optgroup label="---------"> + # <option value="US">United States</option> + # <option value="Canada">Canada</option> + # </optgroup> + # <optgroup label="---------"> # <option value="Denmark">Denmark</option> # <option value="Germany">Germany</option> # <option value="France">France</option> # </optgroup> - # <optgroup label="---------"> - # <option value="US">United States</option> - # <option value="Canada">Canada</option> - # </optgroup> # # <b>Note:</b> Only the <tt><optgroup></tt> and <tt><option></tt> tags are returned, so you still have to # wrap the output in an appropriate <tt><select></tt> tag. |