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

Commits on Dec 21, 2023

  1. Show better_errors even when using Turbo

    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.
    zspencer committed Dec 21, 2023
    Configuration menu
    Copy the full SHA
    5fe2009 View commit details
    Browse the repository at this point in the history