Rails 5: Belongs to Is Now a Required Association
I spent a couple of hours yesterday trying to track down why one of my models would not save without it’s relationship. Unfortunately, I was too deep into accepts_nested_attributes_for
and fields_for
to see the real problem. Turns out it was an easy change.
Comments
It’s a seldom state but it can be useful . thanks.
Post a comment