I am seting up an existing rails project. But found an error below on installation.
Error: File to import not found or unreadable: fancy-buttons.
ActionView::Template::Error (File to import not found or unreadable: fancy-buttons.
Load paths:
Sass::Rails::Importer(/home/cis/Desktop/manish1/hamlncompass/app/assets/stylesheets/partials/_buttons.sass)
/home/cis/Desktop/manish1/hamlncompass/app/assets/stylesheets
/home/cis/.rvm/gems/ruby-1.9.2-p290/gems/compass-0.12.alpha.4/frameworks/blueprint/stylesheets
/home/cis/.rvm/gems/ruby-1.9.2-p290/gems/compass-0.12.alpha.4/frameworks/compass/stylesheets
Compass::SpriteImporter
(in /home/cis/Desktop/manish1/hamlncompass/app/assets/stylesheets/partials/_buttons.sass)):
I had a similar problem, and the change involved changing:
@import filename
to @import filename.css.sass
I had trouble getting a production server to work (both a local Apache/Passenger setup and the built-in WEBrick server).
The browser was redirected to the 500.html error page, and the log kept saying [GET /] miss
. When I reloaded the page repeatedly, eventually I would receive an output similar to what Manish reported.
My Sass files each contained an @import 'base'
statement to load common color and font definitions. Changing this to @import 'base.css.scss'
and having config.assets.compile =
true
in config/environments/production.rb
made both production servers work.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With