From: Alex Birkett Date: 2008-06-19T22:49:18+09:00 Subject: Re: Magic 'show' action Eleanor McHugh wrote: > On 19 Jun 2008, at 12:55, Alex Birkett wrote: >> Parameters: {"action"=>"show", "id"=>"login", "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. > Hi Eleanor, Thanks for you response, I'll have to subscribe to the list. I've fixed the problem by commenting out this line in routes.rb: map.resources :users I still don't understand where the action named 'show' comes from though. Alex -- Posted via http://www.ruby-forum.com/.