maxim / bootswatch-rails

Bootswatches converted to SCSS ready to use in Rails asset pipeline.
MIT License
489 stars 84 forks source link

Unable to make it work on rails 4.1.1 #60

Closed rafalima closed 10 years ago

rafalima commented 10 years ago

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' gem 'bootstrap-sass', '~> 3.1.1' 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?

maxim commented 10 years ago

This is probably related to issue #58

pcriv commented 10 years ago

@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";
rafalima commented 10 years ago

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.

esbanarango commented 10 years ago

@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".

rafalima commented 10 years ago

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?

esbanarango commented 10 years ago

@rafalima Please download the last version (3.1.1.1). This issue should be fixed with this PR #61.