RubyFlow The Ruby and Rails community linklog

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

You can use basic HTML markup (e.g. <a>) or Markdown.

As you are not logged in, you will be
directed via GitHub to signup or sign in