S
S
Said Dias2016-12-10 00:28:52
Ruby on Rails
Said Dias, 2016-12-10 00:28:52

Model communication in Rails, how to check communication?

If there are 2 models, how to display information from both sources?
If, for example, there is a Teacher model that has its own subject and there may be several Lessons. How to bring teachers out with their subjects?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Askhat Bikmetov, 2016-12-10
@katatsu12

In the controller serving the view of both models, you need to access these models and write them to instance variables.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question