fixes crash when selected "history" in preview of page being created

- history button is hidden in newly created page preview as it makes no sense
- redirect to '/' if page does not exist yet
This commit is contained in:
Michał Budzyński
2014-01-31 02:43:03 +01:00
parent 7a59d37350
commit 8b6b0699e5
3 changed files with 14 additions and 2 deletions
+4
View File
@@ -43,6 +43,10 @@ module Precious
@editable
end
def page_exists
@page_exists
end
def allow_uploads
@allow_uploads
end