Fixed errors in app.rb