a Polling app in rails