Class: Manage::PagesController
- Inherits:
-
BaseController
- Object
- BaseController
- Manage::PagesController
- Defined in:
- app/controllers/manage/pages_controller.rb
Instance Method Summary collapse
-
#create ⇒ Object
POST /manage/structures/1/page.
-
#edit ⇒ Object
GET /manage/structures/1/page/edit.
-
#update ⇒ Object
PUT /manage/structures/1/page.
Instance Method Details
#create ⇒ Object
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 |
#edit ⇒ Object
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 |
#update ⇒ Object
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 |