Add rake dev:build for pages
This commit is contained in:
1 parent
32e8bd108f
commit
aab1199aee
15 files changed
+103
-11
No files matched your search
@@ -11,13 +11,7 @@ class PagesController < ApplicationController
|
||||
|
||||
def show
|
||||
@page = Page.find_by_name(params[:page_name])
|
||||
|
||||
if @page && !@page.external_link.blank?
|
||||
redirect_to @page.external_link
|
||||
else
|
||||
render_liquid_page
|
||||
end
|
||||
|
||||
render_liquid_page
|
||||
end
|
||||
|
||||
end
|
||||
Reference in new issue
Block a user