maxim / bootswatch-rails

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

glyphicons-halflings not resolving #76

Closed jjwilliams closed 9 years ago

jjwilliams commented 9 years ago

Once I found this gem, I was able to get mostly everything working (templates load, colors, menus, etc...). Everything except the fonts.

It looks like its hitting /fonts/bootstrap/... instead of /assets/...

http://localhost:3000/fonts/bootstrap/glyphicons-halflings-regular.woff --> 404 http://localhost:3000/fonts/bootstrap/glyphicons-halflings-regular.ttf --> 404

Any idea why this might be?

esbanarango commented 9 years ago

@jjwilliams Could you share the way you're including bootswatch-rails in your project.

jjwilliams commented 9 years ago

application.css.scss:

@import "bootswatch/united/variables";
@import "bootstrap";

body {
    padding-top: 60px;
}

@import "bootswatch/united/bootswatch";
@import "font-awesome-sprockets";
@import "font-awesome";

I've tried with and without font-awesome-sprockets.

esbanarango commented 9 years ago

@jjwilliams which version of bootstrap-sass are you using?

jjwilliams commented 9 years ago

3.3.1.0

jjwilliams commented 9 years ago

Any ideas on this?

esbanarango commented 9 years ago

@jjwilliams could you change you appplication.css.scss and add @import "bootstrap-sprockets";


@import "bootswatch/united/variables";
@import "bootstrap-sprockets";
@import "bootstrap";

body {
    padding-top: 60px;
}

@import "bootswatch/united/bootswatch";
@import "font-awesome-sprockets";
@import "font-awesome"
esbanarango commented 9 years ago

@jjwilliams any luck here?