Skip to content

Instantly share code, notes, and snippets.

@jonpaul
Created November 16, 2011 20:18
Show Gist options
  • Save jonpaul/1371231 to your computer and use it in GitHub Desktop.
Save jonpaul/1371231 to your computer and use it in GitHub Desktop.
def destroy
@listings = Listing.where(:listing_name => params[:listing_name])
@listings.destroy
redirect_to organizations_url, :notice => "Successfully destroyed this group of listings."
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment