Skip to content Skip to sidebar Skip to footer

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

Solution 1:

you need to do it manually, it's not that much code.

Similar question

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"