R
R
rusrich2018-09-01 19:58:35
Ruby on Rails
rusrich, 2018-09-01 19:58:35

How to write data in a Ruby on Rails database through the form of one model to another associated with an association?

Please tell me
how to write data to the database of another model through the form.
The task is this:
There are three models: Series, Season, Series (episode)
I create a new series. I fill out the series form: name, description and other information.
Here I add the season, where I indicate the number of the season, the name of the season and its description.
I add a series (episode) to the season with my series number, series name and description
. For each series, I indicate links to video files.
Thank you.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Andrey Demidenko, 2018-09-01
@rusrich

Nested attributes

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question