Tag Archives: belongs_to

Using belongs_to in Rails model validations when the parent is unsaved

Can’t get there from here In one of my Ruby on Rails projects, I have a model validation which is dependent on attributes from a belongs_to parent. Normally, you can refer to a parent model as child.parent and access the … Continue reading

Posted in programming, Ruby on Rails | Tagged , , , | 10 Comments