Proper way to implement Gentelella admin template in rails 7

69 Views Asked by At

JS is not working, even Sidebar dropdown does not open.

After installing Gentelella, this two path have been created:

  1. app/assets/stylesheets/gentelella-custom.scss
  2. app/assets/javascripts/gentelella-custom.js

I have also imported it in application.js:

import "gentelella"
import "gentelella-custom"

Also tried as,

//= require gentelella
//= require gentelella-custom

Also tried it in application.html.erb

<%= stylesheet_link_tag "application", "data-turbo-track": "reload" %>
<%= javascript_importmap_tags %>  
    
<%= javascript_include_tag 'gentelella' %> 

But, it does not work in rails 7.

0

There are 0 best solutions below