I'm now redirecting to main page in my Rails application using
redirect_to root_path
I want to do the same in jQuery.
i.e. window.location.replace("???");
How to do that?
I'm now redirecting to main page in my Rails application using
redirect_to root_path
I want to do the same in jQuery.
i.e. window.location.replace("???");
How to do that?