Created
April 5, 2016 18:34
-
-
Save Mariusio/8db78d023724de600eae770b38a676a3 to your computer and use it in GitHub Desktop.
This file contains 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
@user = User.find_by(id: params[:id]) | |
unless @user | |
logger.error 'Not found' | |
end | |
begin | |
@user = User.find(params[:id]) | |
rescue => e | |
logger.error 'Not found' | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment