«

»

Sep 05

Converting a rails app from 1.2.6 to 2.1

This is the first in a series(???) of posts detailing things that I’ve found in the process of updating rails (and other plugins/gems) for an application.  Due to politics, it’s using JRuby, running inside a JBoss container, with a Derby backend.

Things which are getting updated include:

  • Rails
  • ActiveRecord-JDBC
  • ActiveScaffold
  • ActiveScaffoldExport
  • Goldspike is being replaced with Warbler

Here’s a list of what I’ve encountered thus far:

  1. Due to an issue with older versions of activescaffoldexport, I’d had to explicitly list the plugin order in the environment.rb file.  This is because activescaffoldexport (now named active_scaffold_export) came alphabetically before active_scaffold.  So when I removed goldspike and installed the new plugin, this needed to be updated.
  2. I needed to run a rake rails:update to update to the latest version.
  3. I needed to edit the environment.rb for active_scaffold — these two lines:

    need to be replaced by:
  4. Deprecated functions used in various plugins need to be updated/rewritten. Those will be detailed later.

I’ll add updates as I come across them.

Leave a Reply

%d bloggers like this: