How can I set controller-wide layout and template?

in your controller:

layout :choose_layout

def choose_layout
  if Time.now.hour == 14
      "two_pm_layout"
   else
      "other_layout"
    end
end

Adam