app/controllers/caboose/pages_controller.rb in caboose-cms-0.2.8 vs app/controllers/caboose/pages_controller.rb in caboose-cms-0.2.11

- old
+ new

@@ -92,12 +92,12 @@ end # GET /pages/new def new return if !user_is_allowed('pages', 'add') - @pages = Page.new - @parent_id = params[:parent_id].nil? ? params[:parent_id] : -1 - render :layout => 'caboose/admin' + @parent_id = params[:parent_id].nil? ? params[:parent_id] : 1 + @parent = Page.find(@parent_id) + render :layout => 'caboose/modal' end # GET /pages/1/redirect def redirect @page = Page.find(params[:id])