debugged end in application.rb