diff --git a/actionview/lib/action_view/helpers/form_options_helper.rb b/actionview/lib/action_view/helpers/form_options_helper.rb index ad26505086231..21f892f4439ab 100644 --- a/actionview/lib/action_view/helpers/form_options_helper.rb +++ b/actionview/lib/action_view/helpers/form_options_helper.rb @@ -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 diff --git a/guides/source/action_view_overview.md b/guides/source/action_view_overview.md index dea1ddef716db..187c910e37ed0 100644 --- a/guides/source/action_view_overview.md +++ b/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