Class: Api::TaxonomiesController

Inherits:
BaseController
  • Object
show all
Defined in:
app/controllers/api/taxonomies_controller.rb

Instance Method Summary collapse

Instance Method Details

#destroyObject



4
5
6
7
8
9
10
11
# File 'app/controllers/api/taxonomies_controller.rb', line 4

def destroy
         puts params[:id]
    @object=Taxonomy.find_by_id(params[:id])
     @object.destroy
    if @object.destroy
    render :text => "Status => Success", :status => 201
  end
end