Help with implementation strategy

Hey guys,
I’m hoping someone can help me with a strategy to implement the
following: I have a voting system with a models/tables for votes,
links, and users. In the view I want to go through the collection of
links and for each one check to see if a user has voted on it. All
the details of displaying the links are implemented, what I am trying
to figure out the best way to take each link and ask - has the current
logged in user voted for this? Any help with an implementation would
be much appreciated it.

JB

On 12/30/07, Jables [email protected] wrote:

Hey guys,
I’m hoping someone can help me with a strategy to implement the
following: I have a voting system with a models/tables for votes,
links, and users. In the view I want to go through the collection of
links and for each one check to see if a user has voted on it. All
the details of displaying the links are implemented, what I am trying
to figure out the best way to take each link and ask - has the current
logged in user voted for this? Any help with an implementation would
be much appreciated it.

Have you considered storing the user id with the vote? You can then
validate your list against the user’s current session id or whatever.


Greg D.
http://destiney.com/

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs