I have a question about a RESTful basic that I'm a little confused about. I have a login method that I want to call for anyone trying to use any admin methods. So my admin_controller has a filter like so: before_filter :admin_authenticate, :except => :login before I went RESTful everything was fine just using "http://localhost: 3000/admins/login" but now I have to use "http://localhost:3000/admins/ login/1". I don't want to need the id in there since we're not going to know the admins id before they log in, but I'm not sure what I need to do to get the controller to respond simply to "http://localhost: 3000/admins/login" I'm thinking this is something that I'm just not understanding about routing. Can anyone elucidate me?
on 2007-04-27 19:56
on 2007-04-27 21:35
Check out the restful_authentication plugin. It explains all of this for you through the use of the session resource. Michael