I have a before filter that authorizes a user’s credentials before
giving them access to any protected methods (pretty standard
practice). If they fail authorization, I want to direct them to a
chance to login or to create an account (also pretty standard
Here’s the rub:
I want to offer them a login form in a small modal box overlayed on
their current screen. I know how to do this from the client side,
modal box (since it’s the server that determines that the user’s
credentials are missing).
Any ideas how to do this?