-
Notifications
You must be signed in to change notification settings - Fork 24
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
Better HTML breaks Rails error page when web-console gem is used #50
Comments
I experienced a similar problem using mailer preview. I really think that this piece of code should go into default settings since you have no control over the quality of the gems you use and it is really cumbersome to seek for answer for a problem that you did not even create. Moreover, even if better html tells me that the gems I use do not follow the best practices, I can't do anything to change that. |
It prevents the web console from being rendered and just shows the default uninformative error screen. More info here: Shopify/better-html#50
It prevents the web console from being rendered and just shows the default uninformative error screen. More info here: Shopify/better-html#50
It prevents the web console from being rendered and just shows the default uninformative error screen. More info here: Shopify/better-html#50
The same problem with lookbook gem :( |
Hey folks 👋
When @clayton-shopify hooked us up with better_html in https://github.com/Shopify/help/pull/7582, it introduced a bug that was fixed in https://github.com/Shopify/help/pull/7839.
What ended up happening was that when the
config.allow_single_quoted_attributes = false
is set and theweb-console
gem is installed, anytime an error occurs when developing locally causes the Rails error page to fail to render. https://github.com/Shopify/help/pull/7839 has a bit more of a description of this problem.The one solution I discovered from the better-html README was to exclude running better-html on any of the ERB templates from the app's gems via:
I wasn't able to figure out a way to exclude only the
web-console
gem's ERB templates. The following method didn't work:Let me know if there's any extra info I can provide 😄
The text was updated successfully, but these errors were encountered: