Redirection after registration

Hello people …

In my application I have user registration, i am using remote_form_for and lightbox for registration.

after successful registration cant able to come out of lightbox with redirection.

how can i redirect from that action(to comeout of lightbox).

is it possible to do that?

Thank in advance!

In your .rjs template, do

page << 'window.location = "http://www.google.com/"'