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

Add the ability to precompile error pages on asset precompile #70

Open
wants to merge 7 commits into
base: main
Choose a base branch
from

Conversation

yuki24
Copy link
Owner

@yuki24 yuki24 commented Sep 23, 2023

Often times dynamically generating error pages is risky, and it’s not always necessary to do that when the error page generation does not rely on dynamic logic. What’s more important though is that is that it’s often painful to re-use the same CSS assets with the main app and the static pages. We should be able to achieve this by generating error pages at the time of asset pre-completion, rather than doing so at runtime.

Todos

  • Display a more helpful message when running rambulance:precompile
  • Update README
    • Background
    • How to use it
    • FAQ & Troubleshooting
  • Drop support for Rails 4.2? It doesn’t have support for the controller rendererskipped test for this one for now.
  • Add more test converage around the static_error_pages = true/false

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.

1 participant