skill-assessment-app/app/views/admin/vote/up.json.erb
2016-11-30 19:00:42 -06:00

7 lines
153 B
Plaintext

{
"message" : "Vote Counted",
"upCount" : <%= @candidate.votes.yea.count %>,
"downCount" : <%= @candidate.votes.nay.count %>,
"myVote" : "yea"
}