philkman PRO said over 2 years ago on Hotwire Modals :
Correction to my last answer: You need to add '@rails/ujs' first