【问题标题】:Bootstrap-Glyphicons on Ruby on rails net::ERR_CONTENT_LENGTH_MISMATCHRuby on rails net::ERR_CONTENT_LENGTH_MISMATCH 上的 Bootstrap-Glyphicons
【发布时间】:2014-11-16 00:19:59
【问题描述】:

我遇到了和这个帖子一样的问题:

Rails 4.1 and Bootstrap 3 glyphicons are not working

Ruby on Rails Bootstrap Glyphicons not working

我按照他们的回答解决了这个问题,但是加载时出现问题。

我在控制台上收到此错误。

GET http://localhost:3000/assets/glyphicons-halflings-regular.ttf net::ERR_CONTENT_LENGTH_MISMATCH

加载太慢了。

请帮忙。

【问题讨论】:

    标签: ruby-on-rails ruby ruby-on-rails-3 twitter-bootstrap


    【解决方案1】:

    您是否在 config/application.rb 中添加了以下内容(在 Application

    config.assets.paths << "#{Rails}/vendor/assets/fonts"
    

    查看this blog post.

    【讨论】:

    猜你喜欢
    • 2013-12-13
    • 1970-01-01
    • 1970-01-01
    • 2018-05-25
    • 1970-01-01
    • 2017-09-16
    • 1970-01-01
    • 1970-01-01
    • 2017-03-12
    相关资源
    最近更新 更多