Ruby Forum Ruby on Rails > Rendering rjs after redirect

Posted by johnmcauley@gmail.com (Guest)
on 18.08.2008 15:46
(Received via mailing list)
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
Posted by Matt White (Guest)
on 18.08.2008 20:23
(Received via mailing list)
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, "johnmcau...@gmail.com" <johnmcau...@gmail.com>
Posted by Kevin Whinnery (Guest)
on 19.08.2008 20:26
(Received via mailing list)
This (and other Ajaxy screencasts from Ryan Bates) may be of help:

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

-Whinnery

On Aug 18, 8:45 am, "johnmcau...@gmail.com" <johnmcau...@gmail.com>