Skip to content
Browse files

Merge pull request #11105 from mariozig/correct-documentation

Fix typo in docs. HABTM associations should use a pluralized name [ci skip]
  • Loading branch information...
1 parent f69bf6e commit 18819e44e17e07616ed7796b1e82a30a9897b4ad @carlosantoniodasilva carlosantoniodasilva committed Jun 25, 2013
View
2 actionpack/lib/action_view/helpers/form_options_helper.rb
@@ -654,7 +654,7 @@ def collection_radio_buttons(object, method, collection, value_method, text_meth
#
# Example object structure for use with this method:
# class Post < ActiveRecord::Base
- # has_and_belongs_to_many :author
+ # has_and_belongs_to_many :authors
# end
# class Author < ActiveRecord::Base
# has_and_belongs_to_many :posts
View
2 guides/source/action_view_overview.md
@@ -1090,7 +1090,7 @@ Example object structure for use with this method:
```ruby
class Post < ActiveRecord::Base
- has_and_belongs_to_many :author
+ has_and_belongs_to_many :authors
end
class Author < ActiveRecord::Base

0 comments on commit 18819e4

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