Skip to content

Instantly share code, notes, and snippets.

@dinks
Created January 17, 2013 16:52
Show Gist options
  • Save dinks/4557471 to your computer and use it in GitHub Desktop.
Save dinks/4557471 to your computer and use it in GitHub Desktop.
Always do this if you dont want to have inconsistencies creeping up your assets
.blah {
<% I18n.available_locales.map(&:to_s).sort.each do |locale| %>
&.<%= locale %> {
background-url: asset-url('localized/test.<%= locale %>.png');
}
<% end %>
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment