In a Rails controller I'm calling this:
redirect_to :controller => "user", :action => "login"
My user_controller.rb
defines the following method:
class UserController < ApplicationController
def login
###
end
When I call my redirect_to
method I get this error in my browser: No action responded to show.
Checking the server logs I see this line:
Processing UserController#show (for 127.0.0.1 at 2009-12-19 12:11:53) [GET]
Parameters: {"action"=>"show", "id"=>"login", "controller"=>"user"}
Finally, I've got this line in my routes.rb
map.resources :user
Any idea what I'm doing wrong?