Fix generator for Rails 2.x