Get flash to fully experience Pearltrees
We Recommend These Resources In this first part I will show you how to build RESTful services using Rails. REST is an architectural style modeled after the Web. Basically, it codifies the principles and methods behind Web servers that lead to the creation of the largest distributed system ever built.
We Recommend These Resources In part 1 of REST with Rails we had an introduction to creating RestFull services with Rails. In this article we will be looking into serving this content using different representations including XML, JSON and Atom. Every resource has a representation, in fact, a given resource can have more than one representation.
While I would love to be using E4X, it isn't viable yet. So JSON it is. Here is how I got a simple JSON example working with Ruby on Rails over Ajax  . I'll assume you have a Rails project up and running with at least one model, controller, views etc. First you want to install the JSON gem ; gem install ruby-json