updated application.rb and production