Skip to content

Instantly share code, notes, and snippets.

@zdzolton
Created June 21, 2009 19:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zdzolton/133618 to your computer and use it in GitHub Desktop.
Save zdzolton/133618 to your computer and use it in GitHub Desktop.
Renames your RHTML templates to the new file extension convention
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