Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8623139
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T07:12:51+00:00 2026-06-12T07:12:51+00:00

I was under the impression that Compass could generate sprites from image files in

  • 0

I was under the impression that Compass could generate sprites from image files in a Rails 3.1+ asset pipeline environment; however, I can’t get it to work.

In my application.scss file I have the following code:

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

If I have the foo directory in app/assets/images, this works just fine, but if I have it in lib/assets/images or vender/assets/images it doesn’t work at all.

I keep getting the error:

No files were found in the load path matching "foo/*.png". Your current load paths are: /Users/xxxxxx/app/assets/images

But I know that vender/assets/images/foo is in the load path because image-url('foo/bar.png') works just fine.

What I’d really like is to have the images in a Gem (since they’re shared across many of my apps), but I can’t get that to work either.

Does anyone know if this is possible? I know compass-rails supports the asset pipeline, but I can’t find anywhere that mentions support for this specific feature.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T07:12:53+00:00Added an answer on June 12, 2026 at 7:12 am

    It looks like by default compass-rails doesn’t look for sprites in the normal assets pipeline directories which isn’t what I expected but it can be easily added if you want it.

    I just added the following code in a compass initializer which basically adds all of the asset pipeline load paths to Compass’s sprite_load_path.

    Compass.add_configuration({:sprite_load_path => Compass.configuration.sprite_load_path + Rails.application.config.assets.paths}, 'sprites')
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I was under the impression that I could get the value of a select
I was under the impression that I could put any old executable program in
I was under the impression that all value types inherit from System.ValueType , and
I am under the impression that the below code should work asynchronously. However, when
I was under the impression that it was possible to access data from a
I was under the impression that I could run it on any machine, but
I was under the impression that with key-value coding, I could set any undefined
I was under impression that rm -r *.xml would remove all file from parent
I was under the impression that I could create a LINQ query and then
I was under impression that .replace and -replace were the exact same thing, however

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.