Join GitHub today
Ability to use a layout with yield without parsing and encoding two times #172
I'm not sure why the opposition to include functionality like this. I think wrapping response data in a shared metadata structure is commonplace in API design. See
Not a very pretty solution, but I managed to create my general response layout using json.erb and just pasting literal results of
Edited to add
It's pretty remarkable actually that Rails 5 (with all it's special emphasis on building JSON APIs) would launch without the ability to easily render the JSON-API standard, of which @wycats himself is a primary editor. All because dhh doesn't believe in metadata in api responses?