gpt4 book ai didi

ruby-on-rails - 没有路由匹配 [GET] "/assets/bootstrap.css.map"

转载 作者:行者123 更新时间:2023-12-03 10:23:13 24 4
gpt4 key购买 nike

我在 rails4,bootstrap 3 上运行,我在终端中收到以下错误消息。

Started GET "/assets/bootstrap.css.map" for 127.0.0.1 at 2014-08-24 23:41:36 -0700

ActionController::RoutingError (No route matches [GET] "/assets/bootstrap.css.map"):
actionpack (4.1.4) lib/action_dispatch/middleware/debug_exceptions.rb:21:in `call'
actionpack (4.1.4) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call'


railties (4.1.4) lib/rails/rack/logger.rb:38:in `call_app'
railties (4.1.4) lib/rails/rack/logger.rb:20:in `block in call'
activesupport (4.1.4) lib/active_support/tagged_logging.rb:68:in `block in tagged'
activesupport (4.1.4) lib/active_support/tagged_logging.rb:26:in `tagged'
activesupport (4.1.4) lib/active_support/tagged_logging.rb:68:in `tagged'
railties (4.1.4) lib/rails/rack/logger.rb:20:in `call'
actionpack (4.1.4) lib/action_dispatch/middleware/request_id.rb:21:in `call'
rack (1.5.2) lib/rack/methodoverride.rb:21:in `call'
rack (1.5.2) lib/rack/runtime.rb:17:in `call'
activesupport (4.1.4) lib/active_support/cache/strategy/local_cache_middleware.rb:26:in `call'
rack (1.5.2) lib/rack/lock.rb:17:in `call'
actionpack (4.1.4) lib/action_dispatch/middleware/static.rb:64:in `call'
rack (1.5.2) lib/rack/sendfile.rb:112:in `call'
railties (4.1.4) lib/rails/engine.rb:514:in `call'
railties (4.1.4) lib/rails/application.rb:144:in `call'
rack (1.5.2) lib/rack/lock.rb:17:in `call'
rack (1.5.2) lib/rack/content_length.rb:14:in `call'
rack (1.5.2) lib/rack/handler/webrick.rb:60:in `service'

任何人有任何想法如何摆脱这个?

编辑:

这是我的 application.css

*= require_tree .
*= require_self
*= require_ladda-themeless
*= require login_form
*= require bootstrap
*/

最佳答案

请求 bootstrap.css.map 的文件是:
/vendor/assets/stylesheets/bootstrap.css
删除最后一行应该可以解决问题:

/*# sourceMappingURL=bootstrap.css.map */

here map 文件是做什么用的。

关于ruby-on-rails - 没有路由匹配 [GET] "/assets/bootstrap.css.map",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25480348/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com