Method: Gatherable::ApplicationController#destroy
- Defined in:
- app/controllers/gatherable/application_controller.rb
#destroy ⇒ Object
37 38 39 40 41 42 |
# File 'app/controllers/gatherable/application_controller.rb', line 37 def destroy model_instance.delete head :no_content rescue ActiveRecord::RecordNotFound => e render :json => { :errors => e.}, :status => :not_found end |