belgoros
Joined 1/17/2018
belgoros said almost 4 years ago on The Stimulus 2.0 Tutorial :
All the examples I've seen before were too trivial, e.g. change a style of an element, add some HTML content in a target section, etc. What about a concrete use of Stimulus in a Rails CRUD app and explain the pros and cons, tests, etc. It would be really great and useful.

belgoros said almost 4 years ago on The Stimulus 2.0 Tutorial :
Thank you, David for the provided response. Sure I'll a look athletic the indicated resources ti understand better the real field of application of Stimulus. For example, I wonder how to proceed if you need to display some additional content on a page only after a user clicks on a button and avoid the page reload, - what kind of response should I use in the corresponding Rails controller action (js, html, json, etc.)?

belgoros said almost 4 years ago on The Stimulus 2.0 Tutorial :
Thank you, David, - I think I have to dig deeper this kind of situation:
If you use a stimulus controller for the button, when clicked, you can make the AJAX request back to the Rails application in a similar fashion and then render a partial within the Rails controller action and then insert this into the page.