Created
June 21, 2009 19:29
-
-
Save zdzolton/133618 to your computer and use it in GitHub Desktop.
Renames your RHTML templates to the new file extension convention
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
Dir.glob('**/*.rhtml') do |rhtml_path| | |
new_path = rhtml_path.gsub /^(.*)\.rhtml$/, '\1.erb.html' | |
`git mv #{rhtml_path} #{new_path}` | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment