Hello all - I'm wondering about making a change to the Shovell application to preclude the same user from voting multiple times for the same story. Should be straight forward, but where/how to do it? (That's the problem with book-learning: the knowledge stops at the end of the book!)

I'm thinking this might be accomplished by changing the relations for the User class. Would something like this make sense?

Code:
class User < ActiveRecord::Base
has_many :stories has_one :votes
:through => :votes, :source => :story
has_many :stories_voted_on,
:through => :votes, :source => :story
end
I haven't tested this, but making a SWAG based on how this reads.

Anyone try to do this already?

Thanks