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 -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
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? -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
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. On Jul 14, 5:35 am, Andrew Skegg <andrewsk...-BUHhN+a2lJ4@public.gmane.org> wrote:> 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?-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.