On 25 March 2010 17:47, Jorge alejandro Mendoza torres <li...@ruby-forum.com> 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-t...@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.