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:
I’m thinking this is something that I’m just not understanding about
routing. Can anyone elucidate me?