Skip to content

Instantly share code, notes, and snippets.

@linusthe3rd
Created March 14, 2011 02:06
Show Gist options
  • Select an option

  • Save linusthe3rd/868658 to your computer and use it in GitHub Desktop.

Select an option

Save linusthe3rd/868658 to your computer and use it in GitHub Desktop.
def get_camp
@camp = Camp.find_by_uri(params[:camp_id])
if !@camp
#call parent 404 method because no record was found
#ActiveRecord::RecordNotFound is not being called
self.render_400
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment