Tuesday, November 06, 2007

Using RJS with Rails 2.0 Preview Release

1. Change the extension from rjs to .js.rjs
2. You must use the respond_to block (format.js will call the corresponding .js.rjs file)
3. Use link_to_remote or other remote calls to make the AJAX call.

1 comment:

  1. format.js is exactly what I needed to know.
    I was using format.js.rjs and getting nothing but heartburn.

    Thanks for the Rails 2.0 rjs AJAX update.

    ReplyDelete