Generator script issue - uninitialized Rails :: Generator :: Commands :: Base :: ActiveRecord constant)

I have a problem with a generator script. Here is the command I'm using:

ruby script/generate migration add_stuff

      

And here is the error I am getting:

uninitialized constant Rails::Generator::Commands::Base::ActiveRecord

      

I have tried updating my system and also installing / uninstalling my rails app.

I am working on Windows XP, rails version 2.3.2

+2


source to share


1 answer


You will see this error if ActiveRecord is disabled. Check if this line has been uncommented in config / environment.rb, and if so, try commenting it out:



config.frameworks -= [ :active_record, :active_resource, :action_mailer ]

      

+3


source







All Articles