Class: Api::TaxonsController
- Inherits:
-
BaseController
- Object
- BaseController
- Api::TaxonsController
- Defined in:
- app/controllers/api/taxons_controller.rb
Instance Method Summary collapse
Instance Method Details
#destroy ⇒ Object
7 8 9 10 11 12 13 14 |
# File 'app/controllers/api/taxons_controller.rb', line 7 def destroy puts params[:id] @object=Taxon.find_by_id(params[:id]) @object.destroy if @object.destroy render :text => "Status => Success", :status => 201 end end |