News for hackers. Stuff that matters.
Re:Offer HN: Help with Ruby on Rails by vinhboy on Wednesday October 27, 2010 @09:55AM (#1838588)
Hey, can you help me answer this: http://stackoverflow.com/questions/4021322/belongs-to-throug...

It's an AR question that has been bugging me.

Thanks!

Re:Offer HN: Help with Ruby on Rails by pbogdan on Wednesday October 27, 2010 @10:12AM (#1838650)
OK, 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).
Re:Offer HN: Help with Ruby on Rails by adamtanner on Wednesday October 27, 2010 @03:06PM (#1840003)
I 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.