Connecting Id field with name field

Posted by sts on Stack Overflow See other posts from Stack Overflow or by sts
Published on 2009-07-31T07:35:49Z Indexed on 2010/05/09 13:08 UTC
Read the original article Hit count: 102

Filed under:

Hi, Am having a table with quetion_id , nominees and vote_count. In which the values for question_id and nominees are prepopulated from other tables with vote_count as zero.

If the users select some nominees the vote count should be incresed by one. The problem is How to connect the question_id and nominees like for this question_id this nominee is selected .

can some one give example for this situation..

© Stack Overflow or respective owner

Related posts about ruby-on-rails