giving synthesis thesis own layout with only simple backlink to site. Also cleaned up conversion errors
This commit is contained in:
15
app/controllers/pages_controller.rb
Normal file
15
app/controllers/pages_controller.rb
Normal file
@ -0,0 +1,15 @@
|
||||
class PagesController < ApplicationController
|
||||
include HighVoltage::StaticPage
|
||||
|
||||
layout :layout_for_page
|
||||
|
||||
private
|
||||
|
||||
def layout_for_page
|
||||
if params[:id].to_s.starts_with?("synthesis/")
|
||||
'synthesis'
|
||||
else
|
||||
'application'
|
||||
end
|
||||
end
|
||||
end
|
Reference in New Issue
Block a user