pgaspar / oqfc

Source code for the "O Que Falta em Coimbra?" concept.
MIT License
12 stars 8 forks source link

Implemetation of Ajax on vote boxes #2

Closed goamaral closed 7 years ago

goamaral commented 8 years ago

Applied Ajax on the vote boxes and made them disabled after voting. Added new Route to get vote score.

goamaral commented 7 years ago

OK so i removed the unnecessary get request and fixed the vote page cases that weren't previously covered. And the POST request response was given by rendering a partial as you suggested. Btw good call, makes the code far cleaner.

goamaral commented 7 years ago

Updated code based on suggestions

pgaspar commented 7 years ago

This is great! Thank you 👍 I'll try getting this deployed soon. Fixes #1.