Hacker News new | ask | show | jobs
by pbogdan 5711 days ago
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).