You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Better HTML breaks Rails error page when web-console gem is used #50
What ended up happening was that when the config.allow_single_quoted_attributes = false is set and the web-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 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.
Thank you for your interest in better_html and for filing this issue.
better_html has now been deprecated and further development is discontinued. See the deprecation notice and archived documentation in the repository, and the replacement guidance and modern tooling at: https://herb-tools.dev/
The change formalizing this deprecation is documented in this commit: dcfeed7
Given the project’s retired status, we’re closing all open issues. If you pursue a community fork or alternative, feel free to reference this ticket for historical context.
Thank you again for helping improve template safety in the Rails ecosystem.
Activity
SamuelCabralCruz commentedon Jul 16, 2019
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.
Stop BetterHtml from suppressing Rails error pages
Disable BetterHtml on Rails error pages
Disable BetterHtml on Rails error pages
Disable BetterHtml on Rails error pages
alec-c4 commentedon Jan 6, 2022
The same problem with lookbook gem :(
rafaelfranca commentedon Sep 18, 2025
Thank you for your interest in better_html and for filing this issue.
better_html has now been deprecated and further development is discontinued. See the deprecation notice and archived documentation in the repository, and the replacement guidance and modern tooling at:
https://herb-tools.dev/
The change formalizing this deprecation is documented in this commit:
dcfeed7
Given the project’s retired status, we’re closing all open issues. If you pursue a community fork or alternative, feel free to reference this ticket for historical context.
Thank you again for helping improve template safety in the Rails ecosystem.
(Automated closure)