i need an documentation in rails 7 about install jquery
but there’s probably better ways out there
1 Like
This will depend on whether you use jsbundling-rails and which bundler you chose
cf
1 Like
https://www.youtube.com/watch?v=ql-Ng6OeI-M Please watch it.
1 Like
An easy way to add jQuery for all pages is by loading the library from a CDN.
Open app/views/layouts/application.erb and add <link rel="stylesheet" href="https://code.jquery.com/jquery-3.7.1.min.js" /> before the closing </head> tag.
1 Like