From: Eleanor McHugh Date: 2008-06-19T22:16:06+09:00 Subject: Re: Magic 'show' action On 19 Jun 2008, at 12:55, Alex Birkett wrote: > I can't understand why my action, 'login' is being redirected to > 'show' > with login passed as an 'id'. > > So when I go to to the url http://localhost:3000/users/login > > Development.log shows: > Processing UsersController#show (for 127.0.0.1 at 2008-06-19 12:45:04) > [GET] > Session ID: xxxxxxxxxxxxxxxxxxxxxxxxxxxx > Parameters: {"action"=>"show", "id"=>"login", "controller"=>"users"} > > When I got to the url: http://localhost:3000/users/login/1 > > Development.log shows: > Processing UsersController#login (for 127.0.0.1 at 2008-06-19 > 12:42:20) > [GET] > Session ID: xxxxxxxxxxxxxxxxxxxxxxxxxxxx > Parameters: {"action"=>"login", "id"=>"1", "controller"=>"users"} > > and the login page loads. > > I've grepped the whole project and I can't find reference to the > 'show' > action anywhere. > > My controller is attached. You'll probably get a more useful answer from the rails mailing list, but at a rough guess I'd suggest that you read your routes.rb file and add a named route for your login controller. Ellie Eleanor McHugh Games With Brains http://slides.games-with-brains.net ---- raise ArgumentError unless @reality.responds_to? :reason