Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Sprites in Rails 3.1

Is there a way to make and use sprites with Rails 3.1 (without external gem) ? I saw methods like sprite_tag or sprite_css but I am not able to use them!

Thank you in advance!

like image 742
Mathieu Mahé Avatar asked Oct 24 '11 14:10

Mathieu Mahé


1 Answers

Rails 3.1 does not have a spriting solution out of the box even though it had been pre-announced it would (see slide 10 of this presentation).

Until it does, one (external gem) solution you can use is compass.

like image 62
Marc-André Lafortune Avatar answered Sep 25 '22 06:09

Marc-André Lafortune