sferik/rails_admin — Issue #925: Problem with installation. /lib/active_support/whiny_nil.rb:48:in `method_missing': undefined method `klass' for nil:NilClass (NoMethodError)
Author: dexion
Created: 2012-01-10 16:35:28+00:00
State: open

After running rails g rails_admin:install I was have this:

[34m - Hello, RailsAdmin installer will help you sets things up![0m
[32m - I need to work with Devise, let's look at a few things first:[0m
[32m - Checking for a current installation of devise...[0m
[32m - Found it![0m
[32m - Looks like you've already installed it, good![0m
[32m - And you already set it up, good! We just need to know about your user model name...[0m
[32m - We found 'user' (should be one of 'user', 'admin', etc.)[0m
[33m ? Correct Devise model name if needed. Press for [user] > [0m
- Ok, Devise looks already set up with user model name 'user':
- Now you'll need an initializer...
create config/initializers/rails_admin.rb
/home/snake/.rvm/gems/ruby-1.9.2-p290@forestry/gems/activesupport-3.1.1/lib/active_support/whiny_nil.rb:48:in `method_missing': undefined method `klass' for nil:NilClass (NoMethodError)
from /home/snake/.rvm/gems/ruby-1.9.2-p290@forestry/gems/activerecord-3.1.1/lib/active_record/reflection.rb:393:in `block in source_reflection'
from /home/snake/.rvm/gems/ruby-1.9.2-p290@forestry/gems/activerecord-3.1.1/lib/active_record/reflection.rb:393:in `collect'
from /home/snake/.rvm/gems/ruby-1.9.2-p290@forestry/gems/activerecord-3.1.1/lib/active_record/reflection.rb:393:in `source_reflection'
from /home/snake/.rvm/gems/ruby-1.9.2-p290@forestry/gems/activerecord-3.1.1/lib/active_record/reflection.rb:538:in `derive_class_name'
from /home/snake/.rvm/gems/ruby-1.9.2-p290@forestry/gems/activerecord-3.1.1/lib/active_record/reflection.rb:128:in `class_name'
from /home/snake/.rvm/gems/ruby-1.9.2-p290@forestry/gems/activerecord-3.1.1/lib/active_record/reflection.rb:173:in `klass'
from /home/snake/.rvm/gems/ruby-1.9.2-p290@forestry/bundler/gems/rails_admin-5579332f8a58/lib/rails_admin/adapters/active_record.rb:329:in `association_child_model_lookup'
from /home/snake/.rvm/gems/ruby-1.9.2-p290@forestry/bundler/gems/rails_admin-5579332f8a58/lib/rails_admin/adapters/active_record.rb:103:in `block in associations'
from /home/snake/.rvm/gems/ruby-1.9.2-p290@forestry/bundler/gems/rails_admin-5579332f8a58/lib/rails_admin/adapters/active_record.rb:96:in `map'
from /home/snake/.rvm/gems/ruby-1.9.2-p290@forestry/bundler/gems/rails_admin-5579332f8a58/lib/rails_admin/adapters/active_record.rb:96:in `associations'
from /home/snake/.rvm/gems/ruby-1.9.2-p290@forestry/bundler/gems/rails_admin-5579332f8a58/lib/rails_admin/adapters/active_record.rb:90:in `belongs_to_associations'
from /home/snake/.rvm/gems/ruby-1.9.2-p290@forestry/bundler/gems/rails_admin-5579332f8a58/lib/rails_admin/config/fields.rb:20:in `block in '
from /home/snake/.rvm/gems/ruby-1.9.2-p290@forestry/bundler/gems/rails_admin-5579332f8a58/lib/rails_admin/config/fields.rb:65:in `call'
from /home/snake/.rvm/gems/ruby-1.9.2-p290@forestry/bundler/gems/rails_admin-5579332f8a58/lib/rails_admin/config/fields.rb:65:in `block (2 levels) in factory'
from /home/snake/.rvm/gems/ruby-1.9.2-p290@forestry/bundler/gems/rails_admin-5579332f8a58/lib/rails_admin/config/fields.rb:65:in `each'
from /home/snake/.rvm/gems/ruby-1.9.2-p290@forestry/bundler/gems/rails_admin-5579332f8a58/lib/rails_admin/config/fields.rb:65:in `find'
from /home/snake/.rvm/gems/ruby-1.9.2-p290@forestry/bundler/gems/rails_admin-5579332f8a58/lib/rails_admin/config/fields.rb:65:in `block in factory'
from /home/snake/.rvm/gems/ruby-1.9.2-p290@forestry/bundler/gems/rails_admin-5579332f8a58/lib/rails_admin/config/fields.rb:61:in `each'
from /home/snake/.rvm/gems/ruby-1.9.2-p290@forestry/bundler/gems/rails_admin-5579332f8a58/lib/rails_admin/config/fields.rb:61:in `factory'
from /home/snake/.rvm/gems/ruby-1.9.2-p290@forestry/bundler/gems/rails_admin-5579332f8a58/lib/rails_admin/config/has_fields.rb:129:in `_fields'
from /home/snake/.rvm/gems/ruby-1.9.2-p290@forestry/bundler/gems/rails_admin-5579332f8a58/lib/rails_admin/config/has_fields.rb:127:in `_fields'
from /home/snake/.rvm/gems/ruby-1.9.2-p290@forestry/bundler/gems/rails_admin-5579332f8a58/lib/rails_admin/config/has_fields.rb:107:in `all_fields'
from /home/snake/.rvm/gems/ruby-1.9.2-p290@forestry/bundler/gems/rails_admin-5579332f8a58/lib/rails_admin/config/has_fields.rb:82:in `fields'
from (erb):85:in `block in template'
from (erb):82:in `map'
from (erb):82:in `template'
from /home/snake/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/erb.rb:753:in `eval'
from /home/snake/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/erb.rb:753:in `result'
from /home/snake/.rvm/gems/ruby-1.9.2-p290@forestry/gems/thor-0.14.6/lib/thor/actions/file_manipulation.rb:111:in `block in template'
from /home/snake/.rvm/gems/ruby-1.9.2-p290@forestry/gems/thor-0.14.6/lib/thor/actions/create_file.rb:54:in `call'
from /home/snake/.rvm/gems/ruby-1.9.2-p290@forestry/gems/thor-0.14.6/lib/thor/actions/create_file.rb:54:in `render'
from /home/snake/.rvm/gems/ruby-1.9.2-p290@forestry/gems/thor-0.14.6/lib/thor/actions/create_file.rb:63:in `block (2 levels) in invoke!'
from /home/snake/.rvm/gems/ruby-1.9.2-p290@forestry/gems/thor-0.14.6/lib/thor/actions/create_file.rb:63:in `open'
from /home/snake/.rvm/gems/ruby-1.9.2-p290@forestry/gems/thor-0.14.6/lib/thor/actions/create_file.rb:63:in `block in invoke!'
from /home/snake/.rvm/gems/ruby-1.9.2-p290@forestry/gems/thor-0.14.6/lib/thor/actions/empty_directory.rb:114:in `call'
from /home/snake/.rvm/gems/ruby-1.9.2-p290@forestry/gems/thor-0.14.6/lib/thor/actions/empty_directory.rb:114:in `invoke_with_conflict_check'
from /home/snake/.rvm/gems/ruby-1.9.2-p290@forestry/gems/thor-0.14.6/lib/thor/actions/create_file.rb:61:in `invoke!'
from /home/snake/.rvm/gems/ruby-1.9.2-p290@forestry/gems/thor-0.14.6/lib/thor/actions.rb:95:in `action'
from /home/snake/.rvm/gems/ruby-1.9.2-p290@forestry/gems/thor-0.14.6/lib/thor/actions/create_file.rb:26:in `create_file'
from /home/snake/.rvm/gems/ruby-1.9.2-p290@forestry/gems/thor-0.14.6/lib/thor/actions/file_manipulation.rb:110:in `template'
from /home/snake/.rvm/gems/ruby-1.9.2-p290@forestry/bundler/gems/rails_admin-5579332f8a58/lib/generators/rails_admin/install_generator.rb:59:in `install'
from /home/snake/.rvm/gems/ruby-1.9.2-p290@forestry/gems/thor-0.14.6/lib/thor/task.rb:22:in `run'
from /home/snake/.rvm/gems/ruby-1.9.2-p290@forestry/gems/thor-0.14.6/lib/thor/invocation.rb:118:in `invoke_task'
from /home/snake/.rvm/gems/ruby-1.9.2-p290@forestry/gems/thor-0.14.6/lib/thor/invocation.rb:124:in `block in invoke_all'
from /home/snake/.rvm/gems/ruby-1.9.2-p290@forestry/gems/thor-0.14.6/lib/thor/invocation.rb:124:in `each'
from /home/snake/.rvm/gems/ruby-1.9.2-p290@forestry/gems/thor-0.14.6/lib/thor/invocation.rb:124:in `map'
from /home/snake/.rvm/gems/ruby-1.9.2-p290@forestry/gems/thor-0.14.6/lib/thor/invocation.rb:124:in `invoke_all'
from /home/snake/.rvm/gems/ruby-1.9.2-p290@forestry/gems/thor-0.14.6/lib/thor/group.rb:226:in `dispatch'
from /home/snake/.rvm/gems/ruby-1.9.2-p290@forestry/gems/thor-0.14.6/lib/thor/base.rb:389:in `start'
from /home/snake/.rvm/gems/ruby-1.9.2-p290@forestry/gems/railties-3.1.1/lib/rails/generators.rb:168:in `invoke'
from /home/snake/.rvm/gems/ruby-1.9.2-p290@forestry/gems/railties-3.1.1/lib/rails/commands/generate.rb:12:in `'
from /home/snake/.rvm/gems/ruby-1.9.2-p290@forestry/gems/activesupport-3.1.1/lib/active_support/dependencies.rb:240:in `require'
from /home/snake/.rvm/gems/ruby-1.9.2-p290@forestry/gems/activesupport-3.1.1/lib/active_support/dependencies.rb:240:in `block in require'
from /home/snake/.rvm/gems/ruby-1.9.2-p290@forestry/gems/activesupport-3.1.1/lib/active_support/dependencies.rb:223:in `block in load_dependency'
from /home/snake/.rvm/gems/ruby-1.9.2-p290@forestry/gems/activesupport-3.1.1/lib/active_support/dependencies.rb:640:in `new_constants_in'
from /home/snake/.rvm/gems/ruby-1.9.2-p290@forestry/gems/activesupport-3.1.1/lib/active_support/dependencies.rb:223:in `load_dependency'
from /home/snake/.rvm/gems/ruby-1.9.2-p290@forestry/gems/activesupport-3.1.1/lib/active_support/dependencies.rb:240:in `require'
from /home/snake/.rvm/gems/ruby-1.9.2-p290@forestry/gems/railties-3.1.1/lib/rails/commands.rb:28:in `'
from script/rails:6:in `require'
from script/rails:6:in `

'