Skip to content

Instantly share code, notes, and snippets.

@kagemusha
Created November 6, 2012 01:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kagemusha/4021842 to your computer and use it in GitHub Desktop.
Save kagemusha/4021842 to your computer and use it in GitHub Desktop.
active_model_serializers installed but render :json not using them
c. 0.5.2
Make sure not doing .to_json
This will not work!!!
render :json=>songs.to_json
This works:
render :json=>songs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment