Use lambdas for Rails 3 Route Constraints
intridea.com
intridea.com
I guess that is what the op trying to do.
So they can use the back arrow and go to the page they at before login redirected them?
I found Drupal's hiding of the login page once I was logged to be truly annoying on a site I regularly visited (till it was apparently changed recently).