Skip to content

Instantly share code, notes, and snippets.

@chintanparikh
Created June 2, 2012 10:39
Show Gist options
  • Save chintanparikh/2857751 to your computer and use it in GitHub Desktop.
Save chintanparikh/2857751 to your computer and use it in GitHub Desktop.
@project = Project.find(params[:id])
rescue ActiveRecord::RecordNotFound
flash[:alert] = "The project you were looking for could not be found"
redirect_to projects_path
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment