Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Object remains votable via JQuery after vote is placed #16

Open
rceee opened this issue Feb 9, 2013 · 7 comments
Open

Object remains votable via JQuery after vote is placed #16

rceee opened this issue Feb 9, 2013 · 7 comments

Comments

@rceee
Copy link

rceee commented Feb 9, 2013

Not sure if this is a Rails 3.2 asset pipeline issue or what, but after placing a vote (the POST action happens fine), the javascript to be able to vote is still live and active. I am able to continue clicking stars, and in the console the model displays the "user already voted" error logs.

Jquery should be disabling the voting ability after a vote is cast, right?

@mrjoechin
Copy link

I'd actually like to see it allow people to update their votes if possible.

@rceee
Copy link
Author

rceee commented Feb 10, 2013

Right, I would like that feature too. What I was getting at was that the model disallows it but the javascript allows it; it needs to be one way or the other, otherwise an error will keep happening.

@mrjoechin
Copy link

I agree :)

@aliibrahim
Copy link

Having the same problem. No solution to this yet?

@rceee
Copy link
Author

rceee commented Apr 24, 2013

Seemed basically unusable to me. Check out Opinio.

@muratguzel
Copy link
Owner

I had no enough time to add this feature however @robban has codded for it. I will test the commit and merge it.

@aliibrahim
Copy link

Thankyou!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants