Class: Api::ZonesController
- Inherits:
-
BaseController
- Object
- BaseController
- Api::ZonesController
- Defined in:
- app/controllers/api/zones_controller.rb
Instance Method Summary collapse
Instance Method Details
#destroy ⇒ Object
13 14 15 16 17 18 19 20 21 22 |
# File 'app/controllers/api/zones_controller.rb', line 13 def destroy puts "&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&" puts params[object_name] puts params[:id] @object=Zone.find_by_id(params[:id]) @object.destroy if @object.destroy render :text => 'Destroyed' end end |