This project is archived and is in readonly mode.
Not saved children does not have parent object in has many association
-
Staszek
- Tag changed from associations, association_collection, belongs_to, hasmany to 2.x, associations, association_collection, belongs_to, hasmany
-
Subba
you should try using inverse_of option as shown below.
class User has_many :movies, :inverse_of => :user end class Movie belongs_to :user, :inverse_of => :movies end -
Staszek
Thank you. It looks like after #3533 Backport :inverse_of from 3.0 to 2.3.x documentation should be updated. Rdocs for 2.3.8 does not have any information about this option
-
Neeraj Singh
- State changed from new to resolved
- Importance changed from to Low