This project is archived and is in readonly mode.
layouts inheritance in controllers
-
ifesdjeen
You can use conditions for layouts, just give layouts a name of method to calculate current layout
class ProjectsController < ApplicationController
layout :get_layout_name def get_layout_name if action_name == "stream" "stream" else "application" end endend
This way you will get your layouts working correctly