Class: Manage::StructuresController
- Inherits:
-
BaseController
- Object
- BaseController
- Manage::StructuresController
- Defined in:
- app/controllers/manage/structures_controller.rb
Instance Method Summary collapse
- #create ⇒ Object
- #destroy ⇒ Object
-
#move ⇒ Object
POST /manage/structures/1/move.
- #update ⇒ Object
Instance Method Details
#create ⇒ Object
12 13 14 |
# File 'app/controllers/manage/structures_controller.rb', line 12 def create create!{ manage_structures_path } end |
#destroy ⇒ Object
20 21 22 |
# File 'app/controllers/manage/structures_controller.rb', line 20 def destroy destroy!{ manage_structures_path } end |
#move ⇒ Object
POST /manage/structures/1/move
25 26 27 28 29 |
# File 'app/controllers/manage/structures_controller.rb', line 25 def move @structure.move_by_direction(params[:direction]) respond_with(@structure, :location => manage_structures_path) end |
#update ⇒ Object
16 17 18 |
# File 'app/controllers/manage/structures_controller.rb', line 16 def update update!{ manage_structures_path } end |