[Rails] Re: We don't need no stinking Badges! Guidance, anyone?

2009-02-04 Thread Harold
Why do you even need a UserBadge model? I would have User model, a Badge model, where the relationship is User belongs_to :badge, and badge has_many :users. Then you can simply assign it with some_user.badge = some_badge. It seems like you're adding complexity with the UserBadge model and the cu

[Rails] Re: We don't need no stinking Badges! Guidance, anyone?

2009-02-04 Thread Julian Leviston
Could you explain your problem more clearly? The rest was beautiful. Blog: http://random8.zenunit.com/ Learn rails: http://sensei.zenunit.com/ On 05/02/2009, at 6:37 AM, Lake Denman wrote: > > Hi, Thanks for taking a look at this. I am in need of some guidance > for > a particular problem: >