加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 百科 > 正文

ruby-on-rails – 没有路由匹配[GET]“/assets/bootstrap.css.ma

发布时间:2020-12-16 19:39:19 所属栏目:百科 来源:网络整理
导读:我在rails4,bootstrap 3上运行,我的终端出现以下错误消息. Started GET "/assets/bootstrap.css.map" for 127.0.0.1 at 2014-08-24 23:41:36 -0700ActionController::RoutingError (No route matches [GET] "/assets/bootstrap.css.map"): actionpack (4.1.4
我在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什么是地图文件.

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读