Created
March 10, 2009 09:21
-
-
Save czottmann/76825 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
def show | |
@xyz = Xyz.find( params[:id] ) | |
if @xyz | |
# render page | |
else | |
# render error template or redirect to error page | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment