Skip to main content

integrating stimulus with ruby on rails

Ruby • Asked by David Brown

Where does the Stimulus team recommend as best practice to put the JS controller files? For example, if I wanted to integrate a version of this walkthrough into an existing rails app?


app/javascript/controllers

It creates an example controller in there when you install stimulus with webpacker. rails webpacker:install:stimulus


Login or Create An Account to join the conversation.

Subscribe to the newsletter

Join 20,000+ developers who get early access to new screencasts, articles, guides, updates, and more.

    By clicking this button, you agree to the GoRails Terms of Service and Privacy Policy.

    More of a social being? We're also on Twitter and YouTube.