jeffp/enumerated_attribute — Issue #42: rails (3.1.3) scaffolding is completely broken by enumerated_attribute
Author: BluebirdProjects
Created: 2012-01-28 21:16:02+00:00
State: open

if enumerated_attribute is in Gemfile, 'rails g scaffold Anything' breaks, with:

/Users/johndoe/.rvm/gems/ruby-1.9.2-p290/gems/enumerated_attribute-0.2.16/lib/enumerated_attribute/rails_helpers.rb:26:in `require': no such file to load -- rails_generator (LoadError)

100% repeatable.

Just to test, tried in brand new project:

rails new trythis
cd trythis
rails g scaffold ModelOne (works fine)
(add enumerated+attribute to Gemfile, run bundle install)
rails g scaffold ModelTwo (throws error message above)
(comment out enumerated_attribute in Gemfile, run bundle install)
rails g scaffold ModelThree (works fine)