Unable to make it work on rails 4.1.1
rafalima opened this issue · 6 comments
Hi, I'm trying to make it work on rails 4.1.1, but I keep receiving an error:
couldn't find file '../fonts/glyphicons-halflings-regular.eot'
(in /Volumes/DADOS/Documents/code/teste/app/assets/stylesheets/application.css.scss)
my Gemfile has the following gems:
gem 'sass-rails', '> 4.0.3'> 3.1.1'
gem 'bootstrap-sass', '
gem 'bootswatch-rails'
my application.css.scss is exactly as it was instructed:
@import "bootswatch/slate/variables";
@import "bootstrap";
@import "bootstrap/mixins";
body { padding-top: 60px; }
@import "bootstrap-responsive";
@import "bootswatch/slate/bootswatch";
@import "base";
Any ideas of what I'm missing?
@rafalima to patch this error you can download the bootstrap glyphicons and place them in 'app/assets/fonts', that would solve the issue for the moment.
I think you don't need to add these lines since you are using bootstrap 3:
@import "bootstrap/mixins";
...
@import "bootstrap-responsive";
awesome, thanks you guys.
While we are at it, do I need the @import "base"; ?
When I try to use it, I get "File to import not found or unreadable: base."
If I remove the line, apparently everything works fine, even the controller specific css.
@rafalima The @import "base";
refers to "whatever application styles you will use". This is more a code organization thing, so it suggests to put your applications styles in another file, which we called it there "base".
ohh, got it, thank you. So I should remove the sprockets lines the comes by default ( *= require_tree and *= require_self) and use the @import for my files. Is that it?