Answer the question
In order to leave comments, you need to log in
Redirect_to kills JS request in Rails 3?
The form with :remote => true submits the update of the record to the update method, which, in turn, if everything is fine, sends it via redirect_to to the show method, and show renders the js displaying the new record. And everything is fine in the opera, but under ff after the redirect to show, “as HTML” already leaves. How to force redirect too in JS?
Answer the question
In order to leave comments, you need to log in
try instead of a redirect to make an action renderer, and write the flash like this:
flash.now[:notice] = 'Hello world!'
I'm not exactly sure, but I think that flash.now is exactly what you need
Don't use rediret_to. Try calling the show method explicitly in the update method.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question