electronic voting API in Rails