<?xml version="1.0" encoding="UTF-8"?>
<feed xml:lang="en-US" xmlns="http://www.w3.org/2005/Atom">
  <title>opensoul.org - Renaming .rhtml to .erb using Ruby Changes</title>
  <id>tag:opensoul.org,2009:/2007/3/4/renaming-rhtml-to-erb-using-ruby/changes</id>
  <generator uri="http://mephistoblog.com" version="0.8.0">Mephisto Drax</generator>
  <link href="http://opensoul.org/2007/3/4/renaming-rhtml-to-erb-using-ruby/changes.xml" rel="self" type="application/atom+xml"/>
  <link href="/2007/3/4/renaming-rhtml-to-erb-using-ruby" rel="alternate" type="text/html"/>
  <updated>2007-03-04T05:51:06Z</updated>
  <entry xml:base="http://opensoul.org/">
    <author>
      <name>brandon</name>
    </author>
    <id>tag:opensoul.org,2007-03-04:260:1</id>
    <updated>2007-03-04T05:51:06Z</updated>
    <link href="http://opensoul.org/2009/3/12/renaming-rhtml-to-erb-using-ruby" rel="alternate" type="text/html"/>
    <title>Renaming .rhtml to .erb using Ruby</title>
<content type="html">&lt;p&gt;Even though Rails isn&#8217;t &lt;a href=&quot;http://dev.rubyonrails.org/changeset/6178&quot;&gt;dropping support for &lt;code&gt;.rhtml&lt;/code&gt; in favor of &lt;code&gt;.erb&lt;/code&gt;&lt;/a&gt; for a while, it doesn&#8217;t hurt to switch now (if you&#8217;re using edge Rails).&lt;/p&gt;


	&lt;p&gt;After a brief, thoughtless, moment of typing &lt;code&gt;svn mv file.rhtml file.erb&lt;/code&gt; a couple of times, it donned on me that I&#8217;m not a monkey.&lt;/p&gt;


&lt;pre&gt;&lt;code class=&quot;ruby&quot;&gt;Dir.glob('app/views/**/*.rhtml').each do |file|
  puts `svn mv #{file} #{file.gsub(/\.rhtml$/, '.erb')}`
end&lt;/code&gt;&lt;/pre&gt;</content>  </entry>
</feed>
