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?

j

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.

On Aug 18, 7:45 am, “[email protected][email protected]

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

http://railscasts.com/episodes/43-ajax-with-rjs

-Whinnery

On Aug 18, 8:45 am, “[email protected][email protected]

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs