Created
August 16, 2012 17:15
-
-
Save rgo/3371771 to your computer and use it in GitHub Desktop.
Replace "url('../images/*.*)" by "url(<%= asset_path '*.* %>)"
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" Replace "url('../images/*.*)" by "url(<%= asset_path '*.* %>)" | |
" | |
" Useful when you need to change a css file to be converted in a css.erb file | |
" | |
%s/url(\(\.\.\/images\/\)\(.\+\))/url\(<%= asset_path '\2' %>\)/gc | |
%s/url('\(\.\.\/images\/\)\(.\+\)')/url\(<%= asset_path '\2' %>\)/gc |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment