{"comment":{"created_at":"2011-10-17T15:25:41Z","body":"I just found a workaround:\r\n\r\nin production.rb write:\r\n\r\nconfig.assets.compile = true\r\n\r\nthen set env to production when compiling:\r\n\r\nrake assets:precompile RAILS_ENV=production\r\n\r\nthat would make all sprites used in stylecheets use the fingerprinted compiled files as reference.\r\n\r\nwould like to know if that work with you!","updated_at":"2011-10-17T15:25:41Z","url":"https://api.github.com/repos/chriseppstein/compass/issues/comments/2430061","id":2430061,"user":{"gravatar_id":"54a25606a5e702a12332a4c807489bd7","avatar_url":"https://secure.gravatar.com/avatar/54a25606a5e702a12332a4c807489bd7?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","url":"https://api.github.com/users/elsherif","id":870754,"login":"elsherif"}},"action":"created","issue":{"number":513,"created_at":"2011-08-14T20:07:23Z","pull_request":{"diff_url":null,"patch_url":null,"html_url":null},"body":"I have this defined in app/assets/stylesheets/icons.css.scss\r\n\r\n```scss\r\n@import \"compass/utilities/sprites\";\r\n\r\n$icons-spacing: 20px;\r\n$icons-position: 0% !default;\r\n$icons-repeat: no-repeat !default;\r\n$icons-sprite-dimensions: true !default;\r\n\r\n@import \"icons/*.png\";\r\n\r\n.add_icon { @include icons-sprite(add) }\r\n.edit_icon { @include icons-sprite(pencil) }\r\n.delete_icon { @include icons-sprite(delete) }\r\n.check_icon { @include icons-sprite(tick) }\r\n.cancel_icon { @include icons-sprite(cross) }\r\n.warning_icon { @include icons-sprite(warning) }\r\n.error_icon { @include icons-sprite(error) }\r\n.info_icon { @include icons-sprite(info) }\r\n.query_icon { @include icons-sprite(query) }\r\n```\r\n\r\nIn development mode, this works fine. I get an `icons-s17f1c1a7aa.png` generated in app/assets/images/, and the icons show up fine when I use them.\r\n\r\nBut when I deploy with sprockets, it renames the generated sprite to something like `icons-s17f1c1a7aa-c8a6d4369227ac689dc8f40706521d68.png`, but the background-image used by the generated css from above still references `icons-s17f1c1a7aa.png`.\r\n\r\nIs there any solution to this yet?","comments":4,"title":"sprockets and sprites (rails 3.1)","updated_at":"2011-10-17T15:25:41Z","url":"https://api.github.com/repos/chriseppstein/compass/issues/513","id":1404150,"assignee":null,"milestone":null,"closed_at":"2011-08-15T02:38:14Z","user":{"gravatar_id":"af31e731dc3f44620a7874d9602e5bc8","avatar_url":"https://secure.gravatar.com/avatar/af31e731dc3f44620a7874d9602e5bc8?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","url":"https://api.github.com/users/evansagge","id":35379,"login":"evansagge"},"html_url":"https://github.com/chriseppstein/compass/issues/513","labels":[],"state":"closed"},"legacy":{"issue_id":1404150,"comment_id":2430061}}