Rails application Up-gradation

Hello Guys ,

I have started upgrading my rails application , when i have started upgrading i was only upgrading only the rails version from rails 2.3.11 to rails 3 and now i have to upgrade the ruby version as well from ruby 1.8.7 to ruby 1.9.2 , So i have installed ruby 1.9.2 using RVM and by setting the ruby 1.9.2 when i am trying to run my application with ruby 1.9.2 and rails 3, it is not working and i am also not able to run any rake command it is showing me

no such file to load -- config/environment

So guys can you please tell me what is right approach to upgrade ruby version for an application.

Thanks Nishant

nishant <nishantnigam5@...> writes:

Hello Guys ,

I have started upgrading my rails application , when i have started upgrading i was only upgrading only the rails version from rails 2.3.11 to rails 3 and now i have to upgrade the ruby version as well from ruby 1.8.7 to ruby 1.9.2 , So i have installed ruby 1.9.2 using RVM and by setting the ruby 1.9.2 when i am trying to run my application with ruby 1.9.2 and rails 3, it is not working and i am also not able to run any rake command it is showing me

no such file to load -- config/environment

So guys can you please tell me what is right approach to upgrade ruby version for an application.

Thanks Nishant

I have found the best way is to create a Rails 3 gemset using RVM, then create a .rvmrc file telling your project to use it. Make sure you run Bundle to install the gems into the isolated gemset.

Also keep in mind that many of the console level commands have changed, and the supporting libraries. You may need to run "rails new ." to update the base files, but BE AWARE this will want to overwrite your project files (don't worry, it will ask you). I highly recommend using git (or similar) to see the differences made and update the code as required. This can be a painful process - perhaps someone here has an easier way?

Andrew,

I am in the middle of the up-gradation process in which i am upgrading the rails version from rails 2.3.11 to rails 3 now i wanted to upgrade the ruby version as well from ruby 1.8.7 to ruby 1.9.2 for the same project , So i would like to know how do i do that.