Search code examples
ruby-on-rails-3compass-sassruby-on-rails-3.2

Compass Sprites in Rails 3.2


I get this error when trying to do spiriting with compass.

Template::Error (can't convert Array into String
    (in /Volumes/Terra-Nova/jwaldrip/Sites/resipsa/app/assets/stylesheets/home.css.scss)):

Here is my code within my scss file:

@import "icon/*.png";
@include all-icon-sprites;

My images are in "app/assets/images/icon/"

What am I doing wrong here?


Solution

  • Took some time and some research but the issue was that I was using the gem "compass" where I should have used "compass-rails" adding this gem fixed all my issues and compass is not importing the pngs and generating the sprites.