Class: Refinery::Admin::PagesController

Inherits:
Refinery::AdminController show all
Defined in:
pages/app/controllers/refinery/admin/pages_controller.rb

Instance Method Summary (collapse)

Methods included from BaseController

#admin?, #searching?

Methods included from Refinery::ApplicationController

#admin?, #error_404, #from_dialog?, #home_page?, #just_installed?, #local_request?, #login?

Instance Method Details

- (Object) children



25
26
27
28
# File 'pages/app/controllers/refinery/admin/pages_controller.rb', line 25

def children
  @page = find_page
  render :layout => false
end

- (Object) new



18
19
20
21
22
23
# File 'pages/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