what is the best way to restirct users, so they can cast only one vote per submission?
I've tried few things, but none of them work. only thing that does work is this line in create.js.rjs:
but as soon as the page is reloaded, user can vote again.Code Ruby:page.replace_html 'vote_form', "voted"
then I've tried editing the controller, so that it checks if user already voted, but I got stuck.