Skip to content

Instantly share code, notes, and snippets.

@kagemusha
Created March 28, 2012 10:01
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/2225160 to your computer and use it in GitHub Desktop.
Save kagemusha/2225160 to your computer and use it in GitHub Desktop.
Rails 3.x ActionView::MissingTemplate for JSON
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