Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Ran a bundle install, bootstrap updated, now I'm getting routing errors

I was just fiddling around with some things and happened to run bundle install on my ruby on rails app. I noticed that bootstrap updated from 3.1.1 to 3.2.0 and now when I go to generate certain views, I get this error:

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

Didn't happen until this gem update. Any suggestions? I've tried explicitly using 3.1.1 in the Gemfile and running bundle again, but this doesn't help. It looks just like a simple routing issue, but idk why this would have only changed during the gem update.

like image 439
LewlSauce Avatar asked Oct 14 '14 02:10

LewlSauce


1 Answers

My problem was with the order I was importing bootstrap in my application.css.scss file. Make sure the order goes:

@import "bootstrap-sprockets";
@import "bootstrap";
like image 165
gstraehle Avatar answered Nov 15 '22 21:11

gstraehle