forked from saurabh/orbit4-5
solved the page part rendering for new empty database
This commit is contained in:
parent
21245a4a86
commit
a923745cf1
|
@ -241,7 +241,7 @@ class PagesController < ApplicationController
|
|||
def get_layout
|
||||
if request[:action] == "edit_view"
|
||||
page = Page.find(params[:id])
|
||||
if page.page_id == "" && page.number == 0
|
||||
if page.page_id == "" || page.page_id == nil
|
||||
false
|
||||
else
|
||||
File.join("../../templates", "#{@key}", '/home/page.html.erb')
|
||||
|
|
Loading…
Reference in New Issue