README.md in active_assets-0.2.0.rc4 vs README.md in active_assets-0.2.0
- old
+ new
@@ -6,11 +6,11 @@
gem install active_assets
Gemfile
-------
- gem 'active_assets', '~>0.2.0.rc3'
+ gem 'active_assets'
In your rails app
-----------------
### application.rb
@@ -97,11 +97,11 @@
#### config/sprites.rb
Rails.application.sprites do
sprite 'sprites/world_flags.png' => 'sprites/world_flags.css'
_"sprite_images/world_flags/Argentina.gif" => ".flags.argentina"
- _"sprites_images/world_flags/Australia.gif" => ".flags.australia"
+ _"sprite_images/world_flags/Australia.gif" => ".flags.australia"
...
end
end
#### To generate
@@ -161,7 +161,5 @@
end
end
`_` and `sp` are aliases for `sprite_piece`
Also, you will notice that I gave a symbol for the sprite instead of a mapping. This will assume that you wish to store your sprite at `path/to/your/public/images/sprites/world_flags.png` and you wish to store your stylesheet at `path/to/your/public/stylesheets/sprites/world_flags.css`.
-
-Copyright © Sam Woodard 2011. Release under the MIT License.