Project

General

Profile

Actions

Patch #1808

closed

switch depreciated rhtml to html.erb

Added by Jared Moody over 15 years ago. Updated over 11 years ago.

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

Also available in: Atom PDF