Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

README improvements #41

Closed
wants to merge 1 commit into from

4 participants

spacekat Mark Rushakoff Scott Davis Philip Walton
spacekat

Adds information on how to customize the sprite generation directory in Rails 3.1+ (asset pipeline) to the README

Mark Rushakoff

+1 on this. It took me an hour of trying to figure this out before I found this pull request, containing the solution to my problem.

Scott Davis
Owner

you should actually set the sprite_load_path if you are using this with sprites

Sprite Load Path: Sprite source files can now be stored in more locations than just your images directory. To add sprite locations in your compass configuration: `sprite_load_path << 'my/sprite/folder'

Philip Walton

I don't think this is correct. app/assets/images/sprites is already in the asset path by default.

Scott Davis scottdavis closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Showing 1 unique commit by 1 author.

Apr 26, 2012
Adds information on how to customize the sprites directory with the R…
…ails asset pipeline to the README
537d85c
This page is out of date. Refresh to see the latest.

Showing 1 changed file with 11 additions and 0 deletions. Show diff stats Hide diff stats

  1. 11  README.md
11  README.md
Source Rendered
@@ -144,6 +144,17 @@ Instead use the sass `@import` directive. In rails projects, the
144 144
 There was a bug in rails 3.1.0 -- please make sure you are running 3.1.1
145 145
 at the earliest for this version of rails.
146 146
 
  147
+If you want to exclude the generated sprites from Git, you will want to generated them in a directory that can be ignored. Do so by customizing the ``generated_images_dir`` in your application.rb. (Example)
  148
+
  149
+```ruby
  150
+config.compass.generated_images_dir = 'app/assets/images/sprites'
  151
+```
  152
+Following that, make sure to add the sprites directory to your ``assets.paths`` so the sprites are accessible via HTTP (Example)
  153
+
  154
+```ruby
  155
+config.assets.paths << Rails.root.join("app", "assets", "images", "sprites")
  156
+```
  157
+
147 158
 ## Rails 3.0 Caveats
148 159
 
149 160
 If you want rails to compile your stylesheets (instead of using the
Commit_comment_tip

Tip: You can add notes to lines in a file. Hover to the left of a line to make a note

Something went wrong with that request. Please try again.