RailsCasts Pro episodes are now free!

Learn more or hide this

Aaron Mc Adam's Profile

GitHub User: aaronmcadam

Site: www.aaronmcadam.com

Comments by Aaron Mc Adam


Depending on how custom you need the JSON, RABL or JBuilder are still used. I prefer JBuilder as it's a little bit more flexible for my needs. I needed custom keys that didn't depend on the model name. If however, you just want a simple data structure with model-name-based keys, then you should use ActiveModel Serializers