Created
November 6, 2012 01:23
-
-
Save kagemusha/4021842 to your computer and use it in GitHub Desktop.
active_model_serializers installed but render :json not using them
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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