提交 a1bcf1fb 编写于 作者: C Carlos Antonio da Silva

Merge pull request #11105 from mariozig/correct-documentation

Fix typo in docs. HABTM associations should use a pluralized name [ci skip]
......@@ -653,7 +653,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
......
......@@ -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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册