Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Mistake in examples: http://guides.rubyonrails.org/association_basics.html #11734

Closed
bismailov opened this Issue Aug 3, 2013 · 0 comments

Comments

Projects
None yet
1 participant

At section 4.4.2

For example, this association uses two such options:

  class Parts < ActiveRecord::Base
           has_and_belongs_to_many :assemblies, uniq: true,
                                   read_only: true
   end

The has_and_belongs_to_many association supports these options:

:association_foreign_key
:autosave
:class_name
:foreign_key
:join_table
:validate

!!!! If you look at example, "uniq" and "read_only" are not in options list. Could you please change the example.

rafaelfranca added a commit that referenced this issue Aug 3, 2013

Merge pull request #11738 from gaurish/guides-association-basics-fix
[Fixes #11734]Correct Association Basics Guide on has_and_belongs_to_many

rafaelfranca added a commit that referenced this issue Aug 3, 2013

Merge pull request #11738 from gaurish/guides-association-basics-fix
[Fixes #11734]Correct Association Basics Guide on has_and_belongs_to_many

[ci skip]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment