Ruby Weekly is a weekly newsletter covering the latest Ruby and Rails news.

16 RJS Resources and Tutorials for Rails Programmers

By Peter Cooper / May 26, 2006

New to Rails 3? Check out the Ruby on Rails 3 Tutorial book and screencast.

A book and screencast series showing you how to develop and deploy industrial-strength Rails apps in a direct, step by step way. The screencast series includes 12 lessons over more than 15 hours! Get the best "over the shoulder" experience of following what a top Rails 3 developer does when building an app today. Click here to learn more.

Please note that this post is over four years old - it's from 2006! As such, these tips were relevant to Rails 1.2 and this content is woefully out of date. We will be updating it for Rails 3 soon! For now, head to the Ruby Inside homepage to find something else to read or check out the Ruby on Rails 3 Tutorial book and screencast which will bring you up to speed with all things Rails 3.

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: ,

Comments

  1. Miro says:

    Great list,

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

  2. Pingback: my life

Other Posts to Enjoy

Twitter Mentions