edited app controller, views, models, and routes from Sinatra to Rails