themes_on_rails
themes_on_rails copied to clipboard
Is it possible to allow multiple layouts in a theme
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?