This is a useful shortcut to getting up and running with the excellent but slightly out-of-date Sprite Gem from gistinc https://github.com/gistinc/sprite.
Your file tree should look something like:
app/assets/images/sprites/{name_of_sprite_folder}/{source_png_images}
Running
rake sprite