In a has_many :through association the join model is automatically created.
But...how the parameters are passed to the model?
For example, if I have
Model1
has_many :models
has_many :models2, through => :models
and
Model2
has_many :models
has_many :model1, through => :models
The join model is Model.
and I create a new Model1, how params model1_id and model2_id are
passed to model Model?
I want to manage them in a after_save callback of the join model.
How can I do that?
--
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.