Rendering rjs after redirect

Hello all,

Using scaffolded code, I create a new rails object and, when
successful, forward to show, at which point I display a notice with
the flash indicating all is well. Now, I want that flash notice to
fade away using rjs, however, I cannot achieve this. I am able render
the rjs using ajax but not on a redirect or page reload?

Can anyone help out with this?


rjs is meant to be used for Ajax requests. If you want to do some
fancy stuff with your flash notice, you'll have to use something like
Prototype to do it.

This (and other Ajaxy screencasts from Ryan Bates) may be of help: