updates every record adding one to the previous value. Your "if
voting.question....." encloses only the line below it (It appears that
<% end %> is missing.
sorry,i have missed to paste the <%end%> in the post.
actually i need to compare the selected nominee with the available
nominees .
if both are equal then i need to update the vote_count. so only i
updated the model in view..