missing ends in application_controller.rb