All threads / Stimulus JS controller not working
Ask A Question

Notifications

You’re not receiving notifications from this thread.

Stimulus JS controller not working

Gursimranjit Singh Channa asked in Javascript

I've taken a clone of one of the projects and I'm following the general setup commands. When I'm trying to create a new js controller(stimulus js) or defining any new method in the existing js controller, these were not triggered from the html.erb pages, from data-controller & data-action. Seems like the changes that I'm making are not working in the server.
I'm getting - Error invoking action "click->controller_name#method_name"
The weird part is it's working in one of my teammate's systems.
Anyone....

Join the discussion

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

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

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

    logo Created with Sketch.

    Screencast tutorials to help you learn Ruby on Rails, Javascript, Hotwire, Turbo, Stimulus.js, PostgreSQL, MySQL, Ubuntu, and more. Icons by Icons8

    © 2022 GoRails, LLC. All rights reserved.