Created
December 31, 2008 01:39
-
-
Save methodmissing/41837 to your computer and use it in GitHub Desktop.
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
| namespace 'views' do | |
| desc 'Renames all your html.erb views to erb' | |
| task 'rename' do | |
| Dir.glob('app/views/**/*.html.erb').each do |file| | |
| puts "#{file} -> #{file.gsub(/\.html.erb$/, '.erb')}" | |
| #puts `mv #{file} #{file.gsub(/\.html.erb$/, '.erb')}` | |
| end | |
| end | |
| end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment