Created
March 28, 2012 10:01
-
-
Save kagemusha/2225160 to your computer and use it in GitHub Desktop.
Rails 3.x ActionView::MissingTemplate for JSON
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
ActionView::MissingTemplate (Missing template...) | |
To fix this, make sure have a render such as: | |
format.json { render :json=>json_to_render } | |
If leave out the :json=> will get error | |
Seems if just do respond_to :json and return @someObj will get error | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment