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

No route matches [GET] “/bootstrap.min.css.map” #124

Open
suganuma-k opened this issue Apr 8, 2022 · 3 comments
Open

No route matches [GET] “/bootstrap.min.css.map” #124

suganuma-k opened this issue Apr 8, 2022 · 3 comments

Comments

@suganuma-k
Copy link

suganuma-k commented Apr 8, 2022

Thanks for always letting me use letter_opener_web !

When I used version 2.0.0, I got this error on puma console.
Exception: ActionController::RoutingError: No route matches [GET] "/bootstrap.min.css.map"

Current version is 2.0.0.

Please fix it in either of the following ways or another:

@fgrehm
Copy link
Owner

fgrehm commented May 14, 2024

@suganuma-k sorry for the long silence here but is this still a problem to you on the latest release that just got out?

@syamnich
Copy link

@fgrehm hi, yes, the issue is still there. I use v.3.0.0 and get this
ActionController::RoutingError (No route matches [GET] "/bootstrap.min.css.map") when visiting the /letter_opener page.
I don't use bootstrap, rails v7.2

@stevenharman
Copy link
Collaborator

This is a result of dumping the minified bootstrap CSS directly into that ERB file as part of an HTML <style> tag, rather than serving Bootstrap as a typical static asset. If we're going to continue doing that, then removing the sourceMappingURL (as recommended by @suganuma-k) is probably the way to go. However, this is brittle as we could well re-introduce it if/when we upgrade the version of bootstrap we're dumping in there.

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

No branches or pull requests

4 participants