Speed ​​up package installation, update download, now I get routing errors

I just played with some things and accidentally started installing the package on my ruby ​​on the rails application. I noticed that bootstrap was updated from 3.1.1 to 3.2.0, and now when I go to create specific views, I get this error:

ActionController::RoutingError (No route matches [GET] "/fonts/bootstrap/glyphicons-halflings-regular.ttf"): 

Did not happen until the update of this gem happens. Any suggestions? I tried to explicitly use 3.1.1 in the Gemfile and run the package again, but this does not help. This seems like a simple routing problem, but idk why it would only change during a gem update.

+5
source share
3 answers

My problem was that I imported the boot file into the application.css.scss file. Make sure the order:

 @import "bootstrap-sprockets"; @import "bootstrap"; 
+6
source

For those who still cannot get an answer to this, I manually changed this file:

/ home //. rvm / gems / ruby-2.1.1 / gems / bootstrap-sass-3.2.0.2 / assets / stylesheets / bootstrap / _glyphicons.scss and took out $ icon_path or something else and replaced it with "../assets/bootstrap /

The problem after that is fixed.

0
source

I had the same problem as you. After some research, these are the most important things I learned:

1) Since bootstrap-sass version 3.2.0, the resource directory has moved from vendor / assets to assets /
source: Problem updating to bootstrap-sass 3.2.0

2) The font files from customizer are probably damaged and should be downloaded directly from the Bootstrap Home Page .
source: Bootstrap 3 Glyphics not working

As you said; change version to 3.1.1.1 to do the trick. I removed the stone with:

 gem uninstall bootstrap-sass 

Then I changed the version defined in gemfile and reinstalled it with

 gem install bootstrap-sass bundle update 

This can help people facing the same problem.

0
source

Source: https://habr.com/ru/post/1204609/


All Articles