Install Stimulus.js on Rails
Just run this in the project:
bundle exec rails webpacker:install:stimulus
And you should already have this in the application layout head:
<%= javascript_pack_tag 'application', 'data-turbolinks-track': 'reload' %>
that's it!
Last updated