Added code to application.rb