Tutorial: How to integrate Hotwire / Turbo / Stimulus in AAv4 #8694
vfonic
started this conversation in
Show and tell
Replies: 1 comment 10 replies
-
Hello, is this a replacement of #8573? |
Beta Was this translation helpful? Give feedback.
10 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
In
app/views/active_admin/_html_head.html.erb
:Load ActiveAdmin, Turbo and Stimulus through importmaps:
Here's an example `config/importmap.rb`:
Most of these files are in
vendor/javascript
, added by runningbin/importmap pin @stimulus-components/auto-submit
or similar.turbo.min.js
andstimulus-loading.js
are part ofturbo-rails
gem (I believe).Flowbite is loaded as recommened by Flowbite docs for Rails/importmaps: https://flowbite.com/docs/getting-started/rails/
Add this line to your
config/application.rb
:Update your
app/javascript/application.js
:If you use this, please comment here.
Feel free to post any questions and comments.
Beta Was this translation helpful? Give feedback.
All reactions