Class: Manage::StructuresController

Inherits:
BaseController
  • Object
show all
Defined in:
app/controllers/manage/structures_controller.rb

Instance Method Summary collapse

Instance Method Details

#createObject



12
13
14
# File 'app/controllers/manage/structures_controller.rb', line 12

def create
  create!{ manage_structures_path }
end

#destroyObject



20
21
22
# File 'app/controllers/manage/structures_controller.rb', line 20

def destroy
  destroy!{ manage_structures_path }
end

#moveObject

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

#updateObject



16
17
18
# File 'app/controllers/manage/structures_controller.rb', line 16

def update
  update!{ manage_structures_path }
end