I am working on a Ruby on Rails project and am needing to customize default views provided by Gems.
The requirement is to use Slim for template. I understand that ER
You can use "slim-rails" gem which is built for generating slim template as default.
https://github.com/slim-template/slim-rails
Just replace gem 'slim' by gem 'slim-rails' in your Gemfile.
In you Gemfile, include
gem 'slim-rails'
And to generate slim tempage, in config/application.rb add this line of code
class Application < Rails::Application
........................................
config.generators do |g|
g.template_engine :slim
end
end