themes_on_rails icon indicating copy to clipboard operation
themes_on_rails copied to clipboard

Is it possible to allow multiple layouts in a theme

Open ammarshah opened this issue 8 years ago • 0 comments

I want something like this which uses 'admin.html.erb' layout file in black theme,

class AdminController < ApplicationController
  theme 'black', layout: 'admin'

  def index
    @users = User.all
  end
end

And this will use a default layout "black.html.erb"

class UsersController < ApplicationController
  theme 'black'

  def index
    @users = User.all
  end
end

Can we make it possible?

ammarshah avatar Jan 05 '17 07:01 ammarshah