I\'m working on a Rails app that currently uses Rails 1.2, so I\'m now quite a long way behind the latest stable release (Rails 2.3).
How should I go about the process o
I've just started upgrading a Rails 1.2.3 application to a Rails 2.3.4 environment. The basic steps and caveats that I encountered are:
environment.rb
settings that you have in the old application to see whether these are required in the new version.routes.rb
changes that might need to be made given that RoR2.3.4 has simplified specifying the routes.form_tag
entries; for example <%= form_tag :action => 'search' %>
becomes `<% form_tag :action => 'search' do %> otherwise you'll get some interesting error messages<%= end_form_tag%>
to closing the block as in `<% end %>in_place_edit
and calls made to the calendar
popup.As others have said it can take longer than expected. I've done about 30hrs work on the migration. I had estimated it to take a lot longer; so that was good; but still have some more work on getting PDF generation going.
Just to make it more interesting the application was running on a MS-Windows environment; Ruby 1.8.7, Rails 1.2.3 and MS SQL Server. The aim was to migrate to a Linux environment; Ruby 1.9.x, Rails 2.3.4 and MySQL database so that involved the MySQl server database migration tools.