An API using Rails for a voting application