I am using Ruby on Rails 3.2.2
Is it possible to call a layout from a location other than app/views/layouts?
I want to use my layout that is located on app/extensions/sites/layouts.
I tried this code but it doesn’t work.
render "#{Rails.root}/app/extensions/sites/views/pages/template01.html.erb", :template => "#{Rails.root}/app/extensions/sites/views/layouts/layout01",
You can specify the layout inside controllers, like
You can also specify the layouts for specific to actions, just follow the link below,
http://guides.rubyonrails.org/layouts_and_rendering.html