Class: Api::ShippingCategoriesController
- Inherits:
-
BaseController
- Object
- BaseController
- Api::ShippingCategoriesController
- Defined in:
- app/controllers/api/shipping_categories_controller.rb
Instance Method Summary collapse
Instance Method Details
#destroy ⇒ Object
3 4 5 6 7 8 9 10 11 12 |
# File 'app/controllers/api/shipping_categories_controller.rb', line 3 def destroy puts "&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&" puts params[object_name] puts params[:id] @object=ShippingCategory.find_by_id(params[:id]) @object.destroy if @object.destroy render :text => 'Destroyed Successfully' end end |