Skip to content
This repository
Browse code

Fix documentation for grouped_collection_select [ci skip]

  • Loading branch information...
commit 2137f8842bdb14306fa635845e91ad4a5428cbb0 1 parent 995b4cf
Artyom authored June 27, 2013
2  actionview/lib/action_view/helpers/form_options_helper.rb
@@ -783,7 +783,7 @@ def collection_select(method, collection, value_method, text_method, options = {
783 783
       # Wraps ActionView::Helpers::FormOptionsHelper#grouped_collection_select for form builders:
784 784
       #
785 785
       #   <%= form_for @city do |f| %>
786  
-      #     <%= f.grouped_collection_select :country_id, :country_id, @continents, :countries, :name, :id, :name %>
  786
+      #     <%= f.grouped_collection_select :country_id, @continents, :countries, :name, :id, :name %>
787 787
       #     <%= f.submit %>
788 788
       #   <% end %>
789 789
       #

0 notes on commit 2137f88

Please sign in to comment.
Something went wrong with that request. Please try again.