themes_on_rails
themes_on_rails copied to clipboard
Adds multi themes support to your Rails 3/4/5 application
Added Rails 6 Support
Just added this and it worked.
Migrating to rails 6 In application controller we have ``` theme Proc.new { |controller| unify_theme_pahts = ... unify_theme_pahts ||= [] unify_theme_pahts.select { |path| /#{path}/ =~ controller.request.path }.count > 0 ?...
Hi. `gem 'themes_on_rails'` is added into Gemfile and installed Themes are generated: `rails g themes_on_rails:theme work` But, after calling method theme inside a controller: ``` class Request::CatalogController < ApplicationController theme...
How can we have it so that if no theme is found it falls back to the default `app/views`? And using this same mechanism would it be possible to get...
Hi, As @rafaelfranca wrote in https://github.com/rails/sprockets-rails/issues/328 > Precompile procs doesn't work in sprockets 4 anymore. Only strings. So https://github.com/chamnap/themes_on_rails/blob/master/lib/themes_on_rails/engine.rb#L22 results on something such as: `undefined method `start_with?' for #` ---...
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 ```...