fixed the controller.rb