Voting API on Rails