Josh Peck - Nerdlog » Archive of 'Jan, 2007'

Ruby on Rails - Fixing Deprecated Statements

So, I just upgraded one of my projects to use Ruby on Rails v1.2.1 and it turns out I was using a lot of deprecated statements in my code (especially in testing code). As a pragmatic programmer, I didn’t want to update each of these files manually, so I created a group of conversion scripts that can be used to update several major problems I had to the Rails 2.0 way of life.

Since it seems hard to edit files by hand and easy to write programs in Ruby, I did the latter and have build a few little scripts to convert deprecated statements in Ruby on Rails to their new precated (why isn’t that a real word?) equivalents. As with any script that modifies your code in-place, be sure to have high quality backups at your disposal!

Download the scripts now: Fix Deprecated 2.0

For a more complete list of deprecated statements, see:
Ruby on Rails Deprecations Part 1: ActionController

© 2008 Josh Peck - Nerdlog is powered by WordPress