开发者

Problems while upgrading the rails version

开发者 https://www.devze.com 2022-12-20 07:35 出处:网络
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'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

精彩评论

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

关注公众号