Trying to write a betting app in RoR