Skip to content

Instantly share code, notes, and snippets.

@czottmann
Created March 10, 2009 09:21
Show Gist options
  • Save czottmann/76825 to your computer and use it in GitHub Desktop.
Save czottmann/76825 to your computer and use it in GitHub Desktop.
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