edit Gemfile and config/application.rb

Could deploy a sample app but kept getting an error webpage instead of the app's webpage. Edit the Gemfile and config/application.rb to fix these errors; now can access app's webpage.