No route matches [GET] “/bootstrap.min.css.map”
Opened this issue · 3 comments
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:
- Remove
/*# sourceMappingURL=bootstrap.min.css.map */
in the end of /app/views/layouts/letter_opener_web/styles/_bootstrap.html.erb - Add bootstrap.min.css.map file
@suganuma-k sorry for the long silence here but is this still a problem to you on the latest release that just got out?
@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
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.