Rails3 Redirect for javascript/ajax
Posted
by
Tiago
on Stack Overflow
See other posts from Stack Overflow
or by Tiago
Published on 2011-03-04T14:49:03Z
Indexed on
2011/03/04
15:24 UTC
Read the original article
Hit count: 199
JavaScript
|ruby-on-rails-3
Hi,
I'm using a form with the remote => true
. I have a validation that is working correctly.
My problem is when the user enters all the correct information and writes the data at this time I do a redirect to the page of the show. Instead of redirecting, it displays the html of the show in my div. How can I make a javascript redirect that will understand? I did not want to use the window.location
.
Thanks...
© Stack Overflow or respective owner