I am a newcomer to RoR and have a question about routing. I have set up an application and a simple user login system (yes I know there is already a login generator out there, I just wanted to try it for myself). I have a before_filter on a certain action that checks if the user is logged in or not. If not, it redirects them to the login page. This is how I have it routed, does this look right?
map.resources :user, :collection => { :login => :get }
also, why if I change
:login => :get
to
:login => :post
does it display the 'show' view?