Rails 5: Nested Forms And Existing Associated Objects
I'm relatively new to Rails so please forgive me if this turns out to be quite a naive question. :] I have two models that can be tagged: Collection and Video. I support this via a
you need to do it manually, it's not that much code.
Basically, you'll need find_or_create_by
in your controller (doc) and fields_for
(doc) in your Collection and Video views.
Post a Comment for "Rails 5: Nested Forms And Existing Associated Objects"