Created
February 10, 2012 19:01
-
-
Save brain-geek/1791738 to your computer and use it in GitHub Desktop.
Mass replace assets hardcoded urls to rails helpers for sublime text
This file contains hidden or 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
| CSS: | |
| Find What: | |
| url\(../images/([^\)]+)\) | |
| Replace with: | |
| url(<%= asset_path '$1' %>) | |
| And don't forget to switch to regexp search mode! | |
| In html: | |
| src="images/([^"]+)" | |
| src="<%= asset_path '$1' %>" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment