Created
October 1, 2008 15:25
-
-
Save trek/14099 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
| def show | |
| @note = Note.find(:where => 'id = 1') | |
| rescue NotFound | |
| redirect_to 'not_found', :status => 404 | |
| rescue NoDatabase | |
| logger.error('the db died again, shit') | |
| redirect_to 'apology', :status => 500 | |
| end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment