Last active
December 18, 2015 11:39
-
-
Save igkuz/5777100 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| class ErrorsController < ApplicationController | |
| respond_to :json, :html | |
| def not_found | |
| # some code here | |
| end | |
| def internal_error | |
| respond_with(...) | |
| end | |
| def unprocessable_entity | |
| # some code here | |
| end | |
| end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment