mwlang / gentelella-rails

Injects the gentelella theme and javascript files into Rails assets pipeline
MIT License
155 stars 50 forks source link

Rails 6 webpack how include vendors? #19

Open galievruslan opened 4 years ago

galievruslan commented 4 years ago

Hello I want to connect the gentelella template to my rails 6 project. The project is completely empty. Installed via yarn add gentelella. Further in the file app / javascript / packs / application.js added require ("gentelella") But when you open any page, it gives an error that Jquery is not connected. If I understand correctly all the dependencies should have been connected from the vendors folder but this did not happen, at least for rails 6 it works for a friend. Tell me how to properly connect all the dependencies so as not to install them manually.

mwlang commented 4 years ago

Can you verify that you're initializing jquery in your Rails 6 app per instructions in the gem's readme? https://github.com/rails/jquery-rails