Ask A Question

Notifications

You’re not receiving notifications from this thread.

How do I connect StimulusJS controller to ActiveAdmin resource

HuzaifaRizwan asked in Rails

Hi Everyone, I've recently moved on rails 7 and new to stimulus as well. for some reason when i connect my stimulus controller to normal index.html.erb file (or any other file outside activeadmin) using "data-controller='home'", it works. but when i apply the same logic in activeadmin resource...the controller just never connects to it...Even tho i see data-controller in the markup but for some reason the controller Stimulus controller just doesnt catch it. do i need to do some configuration for it or what?

Reply
Join the discussion
Create an account Log in

Want to stay up-to-date with Ruby on Rails?

Join 86,946+ developers who get early access to new tutorials, screencasts, articles, and more.

    We care about the protection of your data. Read our Privacy Policy.