gregbell/active_admin — Issue #943: Rails 3.2.1 problem during active_admin:install
Author: svileng
Created: 2012-01-27 13:27:56+00:00
State: open

I created a fresh rails 3.2.1 project with 2 models, and I decided to try out ActiveAdmin. I added the required gems and got the following errors during rails g active_admin:install:

```

#>rails g active_admin:install
DEPRECATION WARNING: The InstanceMethods module inside ActiveSupport::Concern will be no longer included automatically. Please define instance methods directly in ActiveAdmin::Application instead. (called from at C:/Users/<--full path removed-->/config/application.rb:7)
invoke devise
generate devise:install
create config/initializers/devise.rb
create config/locales/devise.en.yml

===============================================================================

--- removed the text for brevity ---

===============================================================================
invoke active_record
create db/migrate/20120127131002_devise_create_admin_users.rb
create app/models/admin_user.rb
invoke test_unit
create test/unit/admin_user_test.rb
create test/fixtures/admin_users.yml
insert app/models/admin_user.rb
route devise_for :admin_users
gsub app/models/admin_user.rb
gsub config/routes.rb
insert db/migrate/20120127131002_devise_create_admin_users.rb
create config/initializers/active_admin.rb
create app/admin
create app/admin/dashboards.rb
route ActiveAdmin.routes(self)
generate active_admin:assets
DEPRECATION WARNING: The InstanceMethods module inside ActiveSupport::Concern will be no longer included automatically. Please define instance methods directly in ActiveAdmin::Application instead. (called from at C:/Users/<--full path removed-->/config/application.rb:7)
C:/Ruby192/lib/ruby/gems/1.9.1/gems/activeadmin-0.3.4/lib/active_admin/reloader.rb:7:in `updated_at': undefined local variable or method `paths' for # (NameError)
from C:/Ruby192/lib/ruby/gems/1.9.1/gems/activesupport-3.2.1/lib/active_support/file_update_checker.rb:60:in `initialize'
from C:/Ruby192/lib/ruby/gems/1.9.1/gems/activeadmin-0.3.4/lib/active_admin/reloader.rb:27:in `new'
from C:/Ruby192/lib/ruby/gems/1.9.1/gems/activeadmin-0.3.4/lib/active_admin/reloader.rb:27:in `initialize'
from C:/Ruby192/lib/ruby/gems/1.9.1/gems/activeadmin-0.3.4/lib/active_admin/application.rb:211:in `new'
from C:/Ruby192/lib/ruby/gems/1.9.1/gems/activeadmin-0.3.4/lib/active_admin/application.rb:211:in `attach_reloader'
from C:/Ruby192/lib/ruby/gems/1.9.1/gems/activeadmin-0.3.4/lib/active_admin/application.rb:79:in `prepare!'
from C:/Ruby192/lib/ruby/gems/1.9.1/gems/activeadmin-0.3.4/lib/active_admin.rb:57:in `setup'
from C:/Users/<--full path removed-->/config/initializers/active_admin.rb:1:in `'
from C:/Ruby192/lib/ruby/gems/1.9.1/gems/activesupport-3.2.1/lib/active_support/dependencies.rb:245:in `load'
from C:/Ruby192/lib/ruby/gems/1.9.1/gems/activesupport-3.2.1/lib/active_support/dependencies.rb:245:in `block in load'
from C:/Ruby192/lib/ruby/gems/1.9.1/gems/activesupport-3.2.1/lib/active_support/dependencies.rb:236:in `load_dependency'
from C:/Ruby192/lib/ruby/gems/1.9.1/gems/activesupport-3.2.1/lib/active_support/dependencies.rb:245:in `load'
from C:/Ruby192/lib/ruby/gems/1.9.1/gems/railties-3.2.1/lib/rails/engine.rb:588:in `block (2 levels) in '
from C:/Ruby192/lib/ruby/gems/1.9.1/gems/railties-3.2.1/lib/rails/engine.rb:587:in `each'
from C:/Ruby192/lib/ruby/gems/1.9.1/gems/railties-3.2.1/lib/rails/engine.rb:587:in `block in '
from C:/Ruby192/lib/ruby/gems/1.9.1/gems/railties-3.2.1/lib/rails/initializable.rb:30:in `instance_exec'
from C:/Ruby192/lib/ruby/gems/1.9.1/gems/railties-3.2.1/lib/rails/initializable.rb:30:in `run'
from C:/Ruby192/lib/ruby/gems/1.9.1/gems/railties-3.2.1/lib/rails/initializable.rb:55:in `block in run_initializers'
from C:/Ruby192/lib/ruby/gems/1.9.1/gems/railties-3.2.1/lib/rails/initializable.rb:54:in `each'
from C:/Ruby192/lib/ruby/gems/1.9.1/gems/railties-3.2.1/lib/rails/initializable.rb:54:in `run_initializers'
from C:/Ruby192/lib/ruby/gems/1.9.1/gems/railties-3.2.1/lib/rails/application.rb:136:in `initialize!'
from C:/Ruby192/lib/ruby/gems/1.9.1/gems/railties-3.2.1/lib/rails/railtie/configurable.rb:30:in `method_missing'
from C:/Users/<--full path removed-->/config/environment.rb:5:in `'
from C:/Ruby192/lib/ruby/gems/1.9.1/gems/activesupport-3.2.1/lib/active_support/dependencies.rb:251:in `require'
from C:/Ruby192/lib/ruby/gems/1.9.1/gems/activesupport-3.2.1/lib/active_support/dependencies.rb:251:in `block in require'
from C:/Ruby192/lib/ruby/gems/1.9.1/gems/activesupport-3.2.1/lib/active_support/dependencies.rb:236:in `load_dependency'
from C:/Ruby192/lib/ruby/gems/1.9.1/gems/activesupport-3.2.1/lib/active_support/dependencies.rb:251:in `require'
from C:/Ruby192/lib/ruby/gems/1.9.1/gems/railties-3.2.1/lib/rails/application.rb:103:in `require_environment!'
from C:/Ruby192/lib/ruby/gems/1.9.1/gems/railties-3.2.1/lib/rails/commands.rb:25:in `'
from script/rails:6:in `require'
from script/rails:6:in `

'
create db/migrate/20120127131016_create_admin_notes.rb
create db/migrate/20120127131017_move_admin_notes_to_comments.rb
```
Also, when I try `rails g controller blabla index` I get similar error (which I didn't have before I tried to install the gem):
```

DEPRECATION WARNING: The InstanceMethods module inside ActiveSupport::Concern will be no longer included automatically. Please define instance methods directly in ActiveAdmin::Application instead. (called from at C:/Users/<--full path removed-->/config/application.rb:7)
C:/Ruby192/lib/ruby/gems/1.9.1/gems/activeadmin-0.3.4/lib/active_admin/reloader.rb:7:in `updated_at': undefined local variable or method `paths' for # (NameError)
from C:/Ruby192/lib/ruby/gems/1.9.1/gems/activesupport-3.2.1/lib/active_support/file_update_checker.rb:60:in `initialize'
from C:/Ruby192/lib/ruby/gems/1.9.1/gems/activeadmin-0.3.4/lib/active_admin/reloader.rb:27:in `new'
from C:/Ruby192/lib/ruby/gems/1.9.1/gems/activeadmin-0.3.4/lib/active_admin/reloader.rb:27:in `initialize'
from C:/Ruby192/lib/ruby/gems/1.9.1/gems/activeadmin-0.3.4/lib/active_admin/application.rb:211:in `new'
from C:/Ruby192/lib/ruby/gems/1.9.1/gems/activeadmin-0.3.4/lib/active_admin/application.rb:211:in `attach_reloader'
from C:/Ruby192/lib/ruby/gems/1.9.1/gems/activeadmin-0.3.4/lib/active_admin/application.rb:79:in `prepare!'
from C:/Ruby192/lib/ruby/gems/1.9.1/gems/activeadmin-0.3.4/lib/active_admin.rb:57:in `setup'
from C:/Users/<--full path removed-->/config/initializers/active_admin.rb:1:in `'
from C:/Ruby192/lib/ruby/gems/1.9.1/gems/activesupport-3.2.1/lib/active_support/dependencies.rb:245:in `load'
from C:/Ruby192/lib/ruby/gems/1.9.1/gems/activesupport-3.2.1/lib/active_support/dependencies.rb:245:in `block in load'
from C:/Ruby192/lib/ruby/gems/1.9.1/gems/activesupport-3.2.1/lib/active_support/dependencies.rb:236:in `load_dependency'
from C:/Ruby192/lib/ruby/gems/1.9.1/gems/activesupport-3.2.1/lib/active_support/dependencies.rb:245:in `load'
from C:/Ruby192/lib/ruby/gems/1.9.1/gems/railties-3.2.1/lib/rails/engine.rb:588:in `block (2 levels) in '
from C:/Ruby192/lib/ruby/gems/1.9.1/gems/railties-3.2.1/lib/rails/engine.rb:587:in `each'
from C:/Ruby192/lib/ruby/gems/1.9.1/gems/railties-3.2.1/lib/rails/engine.rb:587:in `block in '
from C:/Ruby192/lib/ruby/gems/1.9.1/gems/railties-3.2.1/lib/rails/initializable.rb:30:in `instance_exec'
from C:/Ruby192/lib/ruby/gems/1.9.1/gems/railties-3.2.1/lib/rails/initializable.rb:30:in `run'
from C:/Ruby192/lib/ruby/gems/1.9.1/gems/railties-3.2.1/lib/rails/initializable.rb:55:in `block in run_initializers'
from C:/Ruby192/lib/ruby/gems/1.9.1/gems/railties-3.2.1/lib/rails/initializable.rb:54:in `each'
from C:/Ruby192/lib/ruby/gems/1.9.1/gems/railties-3.2.1/lib/rails/initializable.rb:54:in `run_initializers'
from C:/Ruby192/lib/ruby/gems/1.9.1/gems/railties-3.2.1/lib/rails/application.rb:136:in `initialize!'
from C:/Ruby192/lib/ruby/gems/1.9.1/gems/railties-3.2.1/lib/rails/railtie/configurable.rb:30:in `method_missing'
from C:/Users/<--full path removed-->/config/environment.rb:5:in `'
from C:/Ruby192/lib/ruby/gems/1.9.1/gems/activesupport-3.2.1/lib/active_support/dependencies.rb:251:in `require'
from C:/Ruby192/lib/ruby/gems/1.9.1/gems/activesupport-3.2.1/lib/active_support/dependencies.rb:251:in `block in require'
from C:/Ruby192/lib/ruby/gems/1.9.1/gems/activesupport-3.2.1/lib/active_support/dependencies.rb:236:in `load_dependency'
from C:/Ruby192/lib/ruby/gems/1.9.1/gems/activesupport-3.2.1/lib/active_support/dependencies.rb:251:in `require'
from C:/Ruby192/lib/ruby/gems/1.9.1/gems/railties-3.2.1/lib/rails/application.rb:103:in `require_environment!'
from C:/Ruby192/lib/ruby/gems/1.9.1/gems/railties-3.2.1/lib/rails/commands.rb:25:in `'
from script/rails:6:in `require'
from script/rails:6:in `

'
```
As I said, it's really a fresh rails project with no changes apart from 2 generated models. Any ideas and suggestions how to solve this problem are welcome - thank you in advance!