Topic: redirect not working with lightbox gone wild

Basic idea is that I'm trying to do use a lightbox form to login with authentication.

redirect_to login_url, :class => 'lbOn' does not work

however

link_to login_url, :class=> 'lbOn' does

I'm not sure what's wrong, any ideas?

and before you ask, yes I've included the necessary js and css files.

Re: redirect not working with lightbox gone wild

redirect_to is no view method, as it doesn't make sense anyways. redirects are sent back from the server, so it doesn't makle sense to have one in a view you display.

just stick with link_to (or link_to_remote if you want the login to take place via AJAX).