3 ms·
Hey, can you help me answer this: http://stackoverflow.com/questions/4021322/belongs-to-through-associations http://stackoverflow.com/questions/4021322/belongs-
by vinhboy 16y ago
Hey, can you help me answer this: http://stackoverflow.com/questions/4021322/belongs-to-through-associations http://stackoverflow.com/questions/4021322/belongs-to-throug...
It's an AR question that has been bugging me.
Thanks!
- pbogdan 16y agoOK, so I don't have any experience with Rails myself but after having a quick glance wouldn't it be current_user.choices (plural) since user :has_many choices instead of singular, no? (haven't actually checked relationships between your models and whether they make sense).
- adamtanner 16y agoI posted an answer to your question on Stack Overflow. It looks like you're trying to make the problem much harder than it actually is. I hope that helps you out.