Class: Manage::PagesController

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

Instance Method Summary collapse

Instance Method Details

#createObject

POST /manage/structures/1/page



17
18
19
20
# File 'app/controllers/manage/pages_controller.rb', line 17

def create
  @page.update_attributes(params[:page])
  respond_with(@page, :location => manage_structures_path)
end

#editObject

GET /manage/structures/1/page/edit



10
11
12
13
14
# File 'app/controllers/manage/pages_controller.rb', line 10

def edit
  respond_with(@page) do |format|
    format.html { render :action => (@page.new_record? ? 'new' : 'edit') }
  end
end

#updateObject

PUT /manage/structures/1/page



23
24
25
26
# File 'app/controllers/manage/pages_controller.rb', line 23

def update
  @page.update_attributes(params[:page])
  respond_with(@page, :location => manage_structures_path)
end