Actions
Patch #1808
closedswitch depreciated rhtml to html.erb
Status:
Closed
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Start date:
2008-08-25
Due date:
% Done:
0%
Estimated time:
Description
here's a rake task to do this while preserving svn history:
namespace 'views' do
desc 'Renames all your rhtml views to erb'
task 'rename' do
Dir.glob('app/views/**/*.rhtml').each do |file|
puts `svn mv #{file} #{file.gsub(/\.rhtml$/, '.html.erb')}`
end
end
end
Actions