Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Show better_errors even when using Turbo #526

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

zspencer
Copy link

I've enjoyed using Turbo in my Ruby projects. What I haven't loved is the opaque Content Missing error that pops up when a Turbo-wrapped request throws an error.

Sure, I can right-click and dig into the request panel on my developer tools; and I do...

But wouldn't it be nice if instead of all that nonsense; errors would render directly to the screen; so I can read them with my lazy eyeballs rather than having to use my clicky-clicky-fingers?

Anway, this adds a header to the better errors
layout
which tells turbo exactly where to shove the content of this error page.

Right up our eyeballs.

I've enjoyed using Turbo in my Ruby projects.  What I haven't loved is
the opaque `Content Missing` error that pops up when a Turbo-wrapped
request throws an error.

Sure, I can right-click and dig into the request panel on my developer
tools; and I do...

But wouldn't it be nice if instead of all that nonsense; errors would
render directly to the screen; so I can read them with my lazy eyeballs
rather than having to use my clicky-clicky-fingers?

Anway, this adds [a header to the better errors
layout](https://turbo.hotwired.dev/reference/attributes#meta-tags) which
tells turbo exactly where to shove the content of this error page.

Right up our eyeballs.
@jjf21
Copy link

jjf21 commented Apr 17, 2024

This project has been dropped ?
This gem is now unusable without Turbo errors !

@iJackUA
Copy link

iJackUA commented Apr 22, 2024

Dear maintainers, can this PR be merged please?
Without this little addition on modern Rails + Hotwire/Turbo reloading this great gem just "does nothing".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants