fgrehm / letter_opener_web

A web interface for browsing Ruby on Rails sent emails
MIT License
711 stars 111 forks source link

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

Open suganuma-k opened 2 years ago

suganuma-k commented 2 years ago

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 commented 4 months ago

@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 commented 1 month ago

@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 commented 1 month ago

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.