Search code examples
ruby-on-railsrubyhamlslim-lang

Override views from Rails Engine using different file extensions (.slim, .haml)


Is there a way to override views from a Rails Engine, but instead of using the same file extension .erb (in my case) use .slim or .haml instead. I can only make it work if I use the same file extension.

Does anyone had this issue?

Thanks!


Solution

  • Found the solution, pretty obvious actually, you need to have at least the 'slim' or 'slim-rails' gem in your Gemfile!