Skip to content

Instantly share code, notes, and snippets.

@kuroda kuroda/views.rake
Created Jun 21, 2012

Embed
What would you like to do?
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
You can’t perform that action at this time.