Rails backend for final project for iPhone programming class