Looks like the same error I got when I upgraded from rails 1.2.6 to
rails 2.2.2 and still had some .rhtml and .rjs view files in my
project and plugins. Once I renamed them all to .html.erb and .js.rjs
this type of disappeared mysteriously into the night. I found this
rake task on the web that did most of the renaming for me (sorry,
don't remember where):
namespace :rails do
namespace :views do
desc 'Renames all .rhtml views to .html.erb, .rjs to .js.rjs,
.rxml to .xml.builder, and .haml to .html.haml'
task :rename do
Dir.glob('app/views/**/[^_]*.rhtml').each do |file|
puts `svn mv #{file} #{file.gsub(/\.rhtml$/, '.html.erb')}`
end
Dir.glob('app/views/**/[^_]*.rxml').each do |file|
puts `svn mv #{file} #{file.gsub(/\.rxml$/, '.xml.builder')}`
end
Dir.glob('app/views/**/[^_]*.rjs').each do |file|
puts `svn mv #{file} #{file.gsub(/\.rjs$/, '.js.rjs')}`
end
Dir.glob('app/views/**/[^_]*.haml').each do |file|
puts `svn mv #{file} #{file.gsub(/\.haml$/, '.html.haml')}`
end
end
end
end
It converted almost all my view files, but it did NOT do the partials,
so unless you modify it you'll need to do those by hand.
--
|7eter H. l3oling
-----------------------------------------------------------------
President & Fooby-Ru Wizard | 9thBit LLC | http://peterboling.com/
Legacy Partner | EIRO Research | http://peterboling.ieiro.com
Senior Ruby Developer | Sagebit LLC | http://sagebit.com
Mobile DJ | GalacticDJs
-----------------------------------------------------------------
blog: http://galtzo.blogspot.com/
lang: English, Spanish, Portuguese
-----------------------------------------------------------------
find events in your city at http://cartabuzz.com
find tickets for anything fast at http://monkeystub.com