Welcome Guest | Login

Regarding Rails 2.0

Hello,

Rails was upgraded recently to 2.0 on the servers and my site still runs, which is great.  Earlier today I upgraded to rails 2.0 on my local machine and when I started to do some browsing, there were a bunch of deprecated things that I needed to change.  (Simple stuff like @params to params and no more end_form_tag, etc.)

My question is, why would I get these errors on my local machine, but not get them on the live site, since the files on the live site still use those deprecated variables and tags?  Is my site on hostingrails still running on an older version of Rails?  And if so, how do I tell which version it's running on?

Thanks!

2008-03-16 12:13 AM

I've been checking this issues and following are my findings. The Rails version has been specified in your environment.rb to  1.2.3 and which means it takes that version of rails which available on the server. I also tried ./script/about in your RAILS_ROOT and could see the below.

./script/about
About your application's environment
Ruby version                 1.8.6 (i686-linux)
RubyGems version             0.9.4
Rails version                1.2.3
Active Record version        1.15.3
Action Pack version          1.13.3
Action Web Service version   1.2.3
Action Mailer version        1.3.3
Active Support version       1.4.2
Application root             /home/username/app_root
Environment                  production
Database adapter             mysql
Database schema version      2

You might want to compare this with your local machine set up. If you've Rails version  1.2.3 specified in your local environment.rb and still have this problem, please try freezing rails version to 1.2.3 as given below.
rake rails:freeze:edge TAG=rel_1-2-3

2008-03-16 02:08 AM

Thanks for the info.  I successfully upgraded to Rails 2.0.2.

2008-03-17 12:43 AM


Hello Guest! In order to post you must be an active client with us, please log in or sign up today!