I have an application on Rails 2.0.2 and I want to update it to Rails 2.3.4. Do I need to do a new application and I only copy and paste the necesary files? Or, Do I can to do another thing? I tried with: rake rails:update, but nothing happened. Does anyone know how to do this? -- 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.
On Thu, Mar 25, 2010 at 10:47 AM, Jorge alejandro Mendoza torres < lists-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org> wrote:> I have an application on Rails 2.0.2 and I want to update it to Rails > 2.3.4. > > Do I need to do a new application and I only copy and paste the necesary > files? > > Or, Do I can to do another thing? > > I tried with: rake rails:update, but nothing happened. > > Does anyone know how to do this? >Did you edit your environment.rb to use 2.3.4? Next, if you installed Rails into vendor, then you''ll need to remove it to use the system installed gem. Good luck, -Conrad> -- > 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org<rubyonrails-talk%2Bunsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> > . > For more options, visit this group at > http://groups.google.com/group/rubyonrails-talk?hl=en. > >-- 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.
On 25 March 2010 17:47, Jorge alejandro Mendoza torres <lists-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org> wrote:> I have an application on Rails 2.0.2 and I want to update it to Rails > 2.3.4. > > Do I need to do a new application and I only copy and paste the necesary > files? > > Or, Do I can to do another thing? > > I tried with: rake rails:update, but nothing happened.First make sure you are using a version control system so you can make changes and back out if necessary. (I prefer git, some like svn etc.) Next make sure your test suite is comprehensive so you can be sure you have not messed anything up. Install the rails version 2.3.4 Edit config/environment.rb so you have a line like RAILS_GEM_VERSION = ''2.3.4'' unless defined? RAILS_GEM_VERSION It should currently reference the old version. Then do rake rails:update, it should update boot.rb and probably some other files Commit that version to your version control system Run your tests 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.