Answer the question
In order to leave comments, you need to log in
How to output @model_name1.each do |model1| in model_name2.index?
There is MVC model_name1 and model_name2.
Each has an index view.
You want to output <%= @model_name1.each do |model_name1| %> ... <% end %> at index model_name2.
How is it implemented?
In the model_name2 controller or in the model_name1 controller?
In what way is this implemented?
If anyone does this, please let me know.
Thanks in advance!
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question