Dan's homepage

If you’re like us, you waited way too long to upgrade away from Rails 2. Here’s a script to change your view extensions from .rhtml to .html.erb.


for dir in app/views/* ; do
  for file in $dir/*.rhtml ; do
    leftname=`basename $file rhtml`
    `svn mv $file $dir/${leftname}html.erb`

Just run it from the root dir of your project. The script assumes you’re using SVN, but can be easily modified for other source control…

Notice: link_pages is deprecated since version 2.1! Use wp_link_pages() instead. in /deepspace/backup/web/web/virtuals/ on line 3378

Leave a Reply