Skip to content

Instantly share code, notes, and snippets.

@igkuz
Created June 13, 2013 20:33
Show Gist options
  • Select an option

  • Save igkuz/5777097 to your computer and use it in GitHub Desktop.

Select an option

Save igkuz/5777097 to your computer and use it in GitHub Desktop.
def not_found
respond_with({:message => "Not Found"}, :status => :not_found)
end
def internal_error
respond_with({:message => "Internal Server Error"}, :status => :internal_server_error)
end
def unprocessable_entity
respond_with({:message => "Unprocessable Entity"}, :status => :unprocessable_entity)
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment