Fixed script and method in application.rb (missing end)