Sign in through GitHub

Please read for an updated status on RailsCasts:

Learn more or hide this

nilcolor's Profile

GitHub User: nilcolor

Comments by

Avatar

This is exactly thing I need! Thanks for your reply.

Avatar

Is it possible to create something like this:

json
{
  message: "...",
  data: [{"array_of_records": "from_db"}],
  meta: "..."
}

Where message and meta - is custom keys (not in AR). And all data goes under data key?