COnverted to Rails 3.0.20