search for: brun3

Displaying 1 result from an estimated 1 matches for "brun3".

Did you mean: bruno
2007 Nov 18
1
validates_uniqueness_of question
Given three models: a design model, a votes model, and a users model the problem is a user can only vote for a design once. If I do a validates_uniqueness_of :user in the votes model that means a user can only vote once, period. What I want is to say a user can only vote for a single design once. Anyone know the best way to do this? Thanks. JB