maxim / bootswatch-rails

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

@import's can't find bootswatch-rails's stuff #54

Closed rye closed 10 years ago

rye commented 10 years ago

I've quite literally copied the configuration direct from the README into my app/assets/stylesheets/application.css.scss file, and I've run both bundle && bundle install and restarted the server at least 32 times now. I still get the same error:

File to import not found or unreadable: bootswatch/cosmo/variables.
Load paths:
  /home/kristofer/git/github/kotct/docket/app/assets/images
  /home/kristofer/git/github/kotct/docket/app/assets/javascripts
  /home/kristofer/git/github/kotct/docket/app/assets/stylesheets
  /home/kristofer/git/github/kotct/docket/vendor/assets/javascripts
  /home/kristofer/git/github/kotct/docket/vendor/assets/stylesheets
  /usr/local/lib/ruby/gems/2.1.0/gems/jquery-turbolinks-2.0.1/vendor/assets/javascripts
  /usr/local/lib/ruby/gems/2.1.0/gems/bootstrap-sass-3.0.3.0/vendor/assets/fonts
  /usr/local/lib/ruby/gems/2.1.0/gems/bootstrap-sass-3.0.3.0/vendor/assets/javascripts
  /usr/local/lib/ruby/gems/2.1.0/gems/bootstrap-sass-3.0.3.0/vendor/assets/stylesheets
  /usr/local/lib/ruby/gems/2.1.0/gems/turbolinks-2.1.0/lib/assets/javascripts
  /usr/local/lib/ruby/gems/2.1.0/gems/jquery-rails-3.0.4/vendor/assets/javascripts
  /usr/local/lib/ruby/gems/2.1.0/gems/coffee-rails-4.0.1/lib/assets/javascripts
  /usr/local/lib/ruby/gems/2.1.0/gems/bootstrap-sass-3.0.3.0/vendor/assets/stylesheets
  (in /home/kristofer/git/github/kotct/docket/app/assets/stylesheets/application.css.scss:17)

Something is clearly wrong here, since the configuration was directly copied while the theme was changed. I've tried it with cerulean as well and it doesn't work.

jamescgibson commented 10 years ago

I am also having the same issue. It appears that the style sheets aren't in /vendor/assets/stylesheets.

everaldo commented 10 years ago

I'm having the same problem (using Rails 4.1.0.rc1)

everaldo commented 10 years ago

I was looking in the commit history and figured out that this gem doesn't use the bootstrap 3 versions of the themes. Maybe that's the cause of our problems.

maxim commented 10 years ago

Checkout the discussion here: https://github.com/maxim/bootswatch-rails/pull/50 — I'll give commit rights to anyone willing to take over and get things up to date.

everaldo commented 10 years ago

Thanks! But I don't know very much about SASS, Bootstrap, CSS etc. I've decided to download the .css file and customized it. Actually, I was having problems with glyphicons. I've discovered that bootstrap3 uses icon- and bootswatch uses .glyphicon-

esbanarango commented 10 years ago

This gem now does use the bootstrap 3 versions of the themes.