Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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.
  • Loading branch information...
commit 7c584256d1d74a72bc9eed9db5aee71e27006515 1 parent 176f088
@evanfarrar evanfarrar authored
Showing with 4 additions and 4 deletions.
  1. +4 −4 actionpack/lib/action_view/helpers/form_options_helper.rb
View
8 actionpack/lib/action_view/helpers/form_options_helper.rb
@@ -501,14 +501,14 @@ def option_groups_from_collection_for_select(collection, group_method, group_lab
#
# 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.
Please sign in to comment.
Something went wrong with that request. Please try again.