0

I'm using Rails 7 and am thinking of implementing a handler for turbo frame-related errors that displays custom error messages. For example, I would like to display An error occurred, try later instead of the default Content missing message, maybe associating error messages with HTTP statuses and handling this in one place and globally via JS.

Any insight about? For example, where (i.e. in which file e.g. app/javascript/application.js) and how (e.g. using addEventListener(), turbo:frame-missing event, custom actions) should I make that?


In the meantime, I found this.

Backo
  • 18,291
  • 27
  • 103
  • 170

0 Answers0