fix routes.rb and controller