Creating APIs with Ruby and Rabl

(written by lawrence krubner, however indented passages are often quotes). You can contact lawrence at: lawrence@krubner.com

This is a very good tutorial on how much you get for free when you use the Rabl gem with Ruby.

Another good tutorial covers much the same material, and points out why the Rails as_json method breaks the MVC pattern.

Source