Method: FacetsController#destroy

Defined in:
app/controllers/facets_controller.rb

#destroyObject



39
40
41
42
43
44
# File 'app/controllers/facets_controller.rb', line 39

def destroy
  @catalog = @catalog.facets.find(params[:id])
  @catalog.destroy
  flash[:notice] = "Facet was successfully destroyed."
  redirect_to catalog_path(@catalog)
end