Fixed generators for Rails 3