[LRUG] CMS for bespoke API

Graham Ashton graham at effectif.com
Tue Sep 10 12:04:03 PDT 2013

On 10 Sep 2013, at 19:40, Agustin Viñao <agustinvinao at gmail.com> wrote:

> A nice gem to work with json views is https://github.com/nesquena/rabl, you can create json, xml or many other templates formats.
> Is a good way to build an api from a Rails app.

Having tried Rabl first, I now recommend jbuilder over Rabl. It was initially seductive, but the DSL was a little too simple and couldn't produce some of the data structures that I wanted to create from my collections.

There was a bug in the Rabl bug for it in the tracker that basically said "this needs to wait until we've rewritten Rabl". I looked at the code, and couldn't fault their conclusion (it wasn't great).

jbuilder, on the other hand, just works.

More information about the Chat mailing list