mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Fix typo in docs. HABTM associations should use a pluralized name
This commit is contained in:
parent
f02d4ddc99
commit
bf044a9bbe
2 changed files with 2 additions and 2 deletions
|
@ -653,7 +653,7 @@ module ActionView
|
|||
#
|
||||
# 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
|
||||
|
|
Loading…
Reference in a new issue