Skip to content

Instantly share code, notes, and snippets.

@kuroda
Created June 21, 2012 11:30
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 kuroda/2965247 to your computer and use it in GitHub Desktop.
Save kuroda/2965247 to your computer and use it in GitHub Desktop.
Renames all .rhtml views to .html.erb
namespace 'views' do
desc 'Renames all .rhtml views to .html.erb'
task 'rename' do
Dir.glob('app/views/**/*.rhtml').each do |file|
puts `git mv #{file} #{file.gsub(/\.rhtml$/, '.html.erb')}`
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment