A
Alex Birkett
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.
Any help appreciated.
Thanks,
Alex
Attachments:
http://www.ruby-forum.com/attachment/2226/users_controller.rb
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.
Any help appreciated.
Thanks,
Alex
Attachments:
http://www.ruby-forum.com/attachment/2226/users_controller.rb