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
practice).

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,
using javascript, but in this case, I want the server to render that
modal box (since it's the server that determines that the user's
credentials are missing).

Any ideas how to do this?

Thanks,
Yoram
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to