Tell me if what’s next is correct
Line as many messages through line
No
City has many messages throufh line
No
City ha many lines
Line has many directions
Direction has many messages
+
City has many directions through lines
City has many messages through directions
This will allow you to do access a city’s messages directly with
city.messages.
For this you would need the “nested has many through” gem, as rails
cannot use “has many through” more than one level deep.
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.