Class: Refinery::Admin::PagesController
- Inherits:
-
Refinery::AdminController
- Object
- Refinery::AdminController
- Refinery::Admin::PagesController
- Defined in:
- app/controllers/refinery/admin/pages_controller.rb
Instance Method Summary collapse
Instance Method Details
#children ⇒ Object
25 26 27 28 |
# File 'app/controllers/refinery/admin/pages_controller.rb', line 25 def children @page = find_page render :layout => false end |
#new ⇒ Object
18 19 20 21 22 23 |
# File 'app/controllers/refinery/admin/pages_controller.rb', line 18 def new @page = Refinery::Page.new(params.except(:controller, :action, :switch_locale)) Refinery::Pages.default_parts_for(@page).each_with_index do |page_part, index| @page.parts << Refinery::PagePart.new(:title => page_part, :position => index) end end |