简体   繁体   中英

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

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. How do I fix?

My app/assets/stylesheets/application.scss file:

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

In the 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. It's the same except for the permissions error fix.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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