Rails app updates

These are just my latest changes to the rails app.