Premanshu Mishra
2010-Oct-11 05:28 UTC
to change ruby187 code on rails 235 to ruby192 on rails3
Hi Railsers, I want to transport my codes written using ruby 1.8.7 on rails 2.3.5 to ruby 1.9.2 on rails 3.0.0 Any help would do wonders... Regards, Premanshu -- Posted via http://www.ruby-forum.com/. -- 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.
Colin Law
2010-Oct-11 06:55 UTC
Re: to change ruby187 code on rails 235 to ruby192 on rails3
On 11 October 2010 06:28, Premanshu Mishra <lists-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org> wrote:> > Hi Railsers, > > I want to transport my codes written using ruby 1.8.7 on rails 2.3.5 to > ruby 1.9.2 on rails 3.0.0 > > Any help would do wonders...I would recommend first experimenting with Rails 3. Have a look at the Rails Guides and build some test apps. Also check you can deploy to your production server. Then the railscasts starting with http://railscasts.com/episodes/225-upgrading-to-rails-3-part-1 may be helpful. Also obviously make sure you have a good set of automated tests before you start and commit regularly to your version control system (git or whatever) as you go. Good luck Colin -- 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.
Marnen Laibow-Koser
2010-Oct-11 14:51 UTC
Re: to change ruby187 code on rails 235 to ruby192 on rails3
Premanshu Mishra wrote:> > Hi Railsers, > > I want to transport my codes written using ruby 1.8.7 on rails 2.3.5 to > ruby 1.9.2 on rails 3.0.0 > > Any help would do wonders...Hmm. Here''s the way I''ll probably do it when I upgrade my projects: 1. Install RVM. 2. Install Ruby 1.9.2 and Rails 3 under RVM, so I can flip back and forth between the two versions of the project. 3. Run with Ruby 1.9.2/Rails 3 and see which tests fail. 4. Pick one failing test and make it pass. 5. Refactor as necessary. 6. Repeat steps 4 and 5 till done. 7. Tidy up anything else that needs it.> > Regards, > PremanshuBest, -- Marnen Laibow-Koser http://www.marnen.org marnen-sbuyVjPbboAdnm+yROfE0A@public.gmane.org -- Posted via http://www.ruby-forum.com/. -- 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.
Agoofin
2010-Oct-13 21:55 UTC
Re: to change ruby187 code on rails 235 to ruby192 on rails3
You may want to consider rebuilding your app under Rails 3 as there is quite a bit of difference. I upgraded a project from Rails 2.3 to 3.0 and it was difficult. There are several guides out there though for upgrading. On Oct 11, 10:51 am, Marnen Laibow-Koser <li...-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org> wrote:> Premanshu Mishra wrote: > > > Hi Railsers, > > > I want to transport my codes written using ruby 1.8.7 on rails 2.3.5 to > > ruby 1.9.2 on rails 3.0.0 > > > Any help would do wonders... > > Hmm. Here''s the way I''ll probably do it when I upgrade my projects: > > 1. Install RVM. > 2. Install Ruby 1.9.2 and Rails 3 under RVM, so I can flip back and > forth between the two versions of the project. > 3. Run with Ruby 1.9.2/Rails 3 and see which tests fail. > 4. Pick one failing test and make it pass. > 5. Refactor as necessary. > 6. Repeat steps 4 and 5 till done. > 7. Tidy up anything else that needs it. > > > > > Regards, > > Premanshu > > Best, > -- > Marnen Laibow-Koserhttp://www.marnen.org > mar...-sbuyVjPbboAdnm+yROfE0A@public.gmane.org > -- > Posted viahttp://www.ruby-forum.com/.-- 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.