Rails Voting Site

I am a beginner building a site with Rails, and I would like people to be able to vote for certain things with yes or no or right or wrong. I would also like the interest rate to be calculated (possibly below). Can anyone tell me how I can add this functionality?

thanks

-1


a source to share


3 answers


I just finished something like this.

If you want to see how other people have solved this problem, just search github . There are 30 Romanian REPOs.



I found acts_as_voteable to be the most useful.

+1


a source


Remember to design it in such a way as to ensure: "one vote for one IP address". Other than that, it is straightforward and simple mathematics.



+1


a source


You should also take a look at the "counters" in the API, so that every vote counts, and the counters are stored on the object with the vote (so it doesn't need to run the count every time).

+1


a source







All Articles