Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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
Add Comment
Please, Sign In to add comment