So I followed the simple example provided by Josh Susser’s New association goodness in Rails 1.1 but within my own models I can’t seem to get the connection to work.
I have a <omitted>, a <omitted>, and a <omitted> join model. I want one <omitted> assigned to several <omitted> and a <omitted> can have several <omitted>…thus the need for the join table. I’m storing just the id’s for <omitted> and <omitted> in the join table as <omitted>_id and <omitted>_id. When I run <omitted>.connections.size I get the correct number of associations for that <omitted>.
The rub is I can’t do the rails magic of <omitted>.<omitted>.name – it get a huge error in the console instead of what I want the output to be.
Don’t worry I solved it…