Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Create views/application/exception.json.erb and write code there
<%= sanitize({ errors: { @exception.class.name => [@exception.to_s] } }.to_json) %>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment