16 RJS Resources and Tutorials for Rails Programmers

Post by Peter Cooper

Permanent Link  |   book mark 16 RJS Resources and Tutorials for Rails Programmers in del.icio.usClick here to add on del.icio.us

RJS is a template type for Rails that allows Rails developers to use Ruby to produce dynamic JavaScript code that will usually be executed in response to an AJAX call. There are lot of disparate resources relating to RJS around the net, so I've collected as many of them together here as possible. If you need to use RJS, this is the list for you!

Introduction / Tutorials

  • Simple RJS Tutorial - An up to date RJS tutorial (May 2006) featuring a video demonstration and some code.
  • RJS Tutorial by FearOfFish - Another overall tutorial with a demonstration view, controller, and RJS template for adding a shopping cart type system to a page.
  • Ajaxed forms with RJS templates - Technoweenie demonstrates how an entire form can be processed and manipulated using AJAX and RJS. Lots of nice syntax colored code!
  • A Demo of RJS - A live demo of what RJS can do, including code.

References

  • RJS Template Methods - A list of methods supported by RJS templates from February 2006 (before Rails 1.1). It includes some demonstration code to put together a small app using RJS.

Miscellaneous / Advanced

  • Add RJS support to TextMate - TextMate doesn't understand RJS by default, and this post shows you how to get the syntax coloring working.

Debugging and Testing

  • AjaxSpy - A cute way to debug and monitor RJS requests directly from the page. Only works in FireFox and Safari.
  • Debugging your RJS calls - Find out what RJS is getting returned from the page end of things with this useful JavaScript trick.

Technorati Tags: ,

2 Responses to “16 RJS Resources and Tutorials for Rails Programmers”

  1. #1
    Miro Says:

    Great list,

    …second link does not work:
    http://blog.fearoffish.com/articles/2006/03/04/tutorial-rails-rjs-templates

  2. #2
    my life Says:

    RJS Templates tutorials with Ruby on Rails

    I was looking for tutorials on RJS on RoR. It took me a while to find sites that gave me a simple explanation on RJS. Cody Fauser has written a book on RJS through O’rielly.  I hope you find this list interesting
    http://rails.techno-weenie.net/t...