Skip to content

Instantly share code, notes, and snippets.

@rtacconi
Created August 13, 2010 15:51
Show Gist options
  • Save rtacconi/523101 to your computer and use it in GitHub Desktop.
Save rtacconi/523101 to your computer and use it in GitHub Desktop.
begin
p = Participant.find params[:id]
render :nothing => true, :status => 200
rescue
render :nothing => true, :status => 404
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment