开发者

Problems while upgrading the rails version

I'm a newbie to Ruby on Rails. My problem is, I am trying to upgrade the rails version from 1.2.3 to 2.3.4.

I changed the .开发者_如何学Crhtml files to .html.erb according to the rails version 2.3.4. I changed the environment and boot.rb settings according to the rails version, but when I try to run the application, I'am getting missing template error it is searching for the view with .rhtml extension but not for the html.erb. Please kindly help me with this.

Thank you


Did you change your RAILS_GEM_VERSION in the config/environment.rb file? It may still be looking for the 1.2.3 gem, as opposed to the 2.3.4 gem.


You can make sure whether you have upgraded properly or not by going to script/console and whether it prints out

Loading development environment (Rails 2.3.4)

or not as you enter the console, that might give you some hints.


Check if you have a copy of rails in the vendor directory. Also, what does script/about show?

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜