There’s been times when building apps with Turbolinks that I’ve needed to tap into Rails UJS to be able to perform an action (e.g submit a form).
As an example, if you want to submit a rails form with JS you need to use
Rails.handleRemote(...)and there’s no reference to that anywhere in the docs.
I’m not sure if those methods should be used or not. Maybe I’ve misused
rails ujs but I wouldn’t know because most examples in stack overflow point to using these methods instead of handlers like
Rails.handleRemote and others meant to be used? Are they part of a private API? If it’s something we can use, could we add a section to the docs explaining when to use them instead of the handlers?