The server can only respond to client (browser) requests, so you have to either render a login page and then redirect to the original destination or you need to have some javascript to help with what you want. In short, the server can't MAKE the browser do anything...
On Apr 14, 6:33 am, "yber...@msn.com" <yber...@msn.com> wrote: > 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 -~----------~----~----~----~------~----~------~--~---