简体   繁体   English

将bootstrap-sass升级到3.3.4会导致使用Rails引导的glyphicons丢失。 为什么?

[英]Upgrading bootstrap-sass to 3.3.4 causes loss of glyphicons in bootstrap with Rails. Why?

Rails 4.2 and boostrap-sass 3.3.4 Rails 4.2和boostrap-sass 3.3.4

Everything was working fine in 3.3.3, but after upgrading to 3.3.4, I get 403 forbidden errors when my site tries to access bootstrap's glyphicons fonts. 在3.3.3中一切正常,但是升级到3.3.4后,当我的网站尝试访问bootstrap的glyphicons字体时,出现403禁止错误。 How do I fix? 我该如何解决?

My app/assets/stylesheets/application.scss file: 我的app / assets / stylesheets / application.scss文件:

$link-color: #00673E;
$brand-primary: #00673E;
@import '*';
@import 'jquery-ui/datepicker';
@import "bootstrap-sprockets";
@import "bootstrap";

In the Gemfile: 在Gemfile中:

gem 'sass-rails', '>= 3.2' #upgrading to 5 makes no difference
gem 'bootstrap-sass', '3.3.4'

I botched the 3.3.4 release, please upgrade to 3.3.4.1. 拙劣的3.3.4版本,请升级到3.3.4.1。 It's the same except for the permissions error fix. 除了权限错误修复之外,其他均相同。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM