Class: Api::ShippingMethodsController

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

Instance Method Summary collapse

Instance Method Details

#destroyObject



13
14
15
16
17
18
19
20
21
22
# File 'app/controllers/api/shipping_methods_controller.rb', line 13

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