gregbell/active_admin — Issue #1083: Issue: can't convert nil into Hash (TypeError) during active admin insdtall
Author: dgdosen
Created: 2012-02-28 14:48:34+00:00
State: open

I'm on ruby-1.9.3-p0
Rails 3.2.1

Pretty vanilla install...

When I run the `rails generate active_admin:install`, I get an error:

```
/Users/xxx/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/psych/visitors/to_ruby.rb:217:in `merge!': can't convert nil into Hash (TypeError)
from /Users/xxx/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/psych/visitors/to_ruby.rb:217:in `block in revive_hash'
from /Users/xxx/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/psych/visitors/to_ruby.rb:211:in `each'
from /Users/xxx/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/psych/visitors/to_ruby.rb:211:in `each_slice'
from /Users/xxx/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/psych/visitors/to_ruby.rb:211:in `revive_hash'
from /Users/xxx/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/psych/visitors/to_ruby.rb:123:in `visit_Psych_Nodes_Mapping'
from /Users/xxx/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/psych/visitors/visitor.rb:15:in `visit'
from /Users/xxx/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/psych/visitors/visitor.rb:5:in `accept'
from /Users/xxx/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/psych/visitors/to_ruby.rb:16:in `accept'
from /Users/xxx/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/psych/visitors/to_ruby.rb:226:in `block in revive_hash'
from /Users/xxx/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/psych/visitors/to_ruby.rb:211:in `each'
from /Users/xxx/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/psych/visitors/to_ruby.rb:211:in `each_slice'
from /Users/xxx/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/psych/visitors/to_ruby.rb:211:in `revive_hash'
from /Users/xxx/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/psych/visitors/to_ruby.rb:123:in `visit_Psych_Nodes_Mapping'
from /Users/xxx/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/psych/visitors/visitor.rb:15:in `visit'
from /Users/xxx/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/psych/visitors/visitor.rb:5:in `accept'
from /Users/xxx/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/psych/visitors/to_ruby.rb:16:in `accept'
from /Users/xxx/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/psych/nodes/node.rb:35:in `to_ruby'
from /Users/xxx/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/psych.rb:113:in `load'
from /Users/xxx/.rvm/gems/ruby-1.9.3-p0@heroku-cedar/gems/railties-3.2.1/lib/rails/application/configuration.rb:115:in `database_configuration'
from /Users/xxx/.rvm/gems/ruby-1.9.3-p0@heroku-cedar/gems/activerecord-3.2.1/lib/active_record/railtie.rb:75:in `block (2 levels) in '
from /Users/xxx/.rvm/gems/ruby-1.9.3-p0@heroku-cedar/gems/activesupport-3.2.1/lib/active_support/lazy_load_hooks.rb:36:in `instance_eval'
from /Users/xxx/.rvm/gems/ruby-1.9.3-p0@heroku-cedar/gems/activesupport-3.2.1/lib/active_support/lazy_load_hooks.rb:36:in `execute_hook'
from /Users/xxx/.rvm/gems/ruby-1.9.3-p0@heroku-cedar/gems/activesupport-3.2.1/lib/active_support/lazy_load_hooks.rb:26:in `on_load'
from /Users/xxx/.rvm/gems/ruby-1.9.3-p0@heroku-cedar/gems/activerecord-3.2.1/lib/active_record/railtie.rb:74:in `block in '
from /Users/xxx/.rvm/gems/ruby-1.9.3-p0@heroku-cedar/gems/railties-3.2.1/lib/rails/initializable.rb:30:in `instance_exec'
from /Users/xxx/.rvm/gems/ruby-1.9.3-p0@heroku-cedar/gems/railties-3.2.1/lib/rails/initializable.rb:30:in `run'
from /Users/xxx/.rvm/gems/ruby-1.9.3-p0@heroku-cedar/gems/railties-3.2.1/lib/rails/initializable.rb:55:in `block in run_initializers'
from /Users/xxx/.rvm/gems/ruby-1.9.3-p0@heroku-cedar/gems/railties-3.2.1/lib/rails/initializable.rb:54:in `each'
from /Users/xxx/.rvm/gems/ruby-1.9.3-p0@heroku-cedar/gems/railties-3.2.1/lib/rails/initializable.rb:54:in `run_initializers'
from /Users/xxx/.rvm/gems/ruby-1.9.3-p0@heroku-cedar/gems/railties-3.2.1/lib/rails/application.rb:136:in `initialize!'
from /Users/xxx/.rvm/gems/ruby-1.9.3-p0@heroku-cedar/gems/railties-3.2.1/lib/rails/railtie/configurable.rb:30:in `method_missing'
from /Users/xxx/Development/doctors-tool-ruby/config/environment.rb:5:in `'
from /Users/xxx/.rvm/gems/ruby-1.9.3-p0@heroku-cedar/gems/activesupport-3.2.1/lib/active_support/dependencies.rb:251:in `require'
from /Users/xxx/.rvm/gems/ruby-1.9.3-p0@heroku-cedar/gems/activesupport-3.2.1/lib/active_support/dependencies.rb:251:in `block in require'
from /Users/xxx/.rvm/gems/ruby-1.9.3-p0@heroku-cedar/gems/activesupport-3.2.1/lib/active_support/dependencies.rb:236:in `load_dependency'
from /Users/xxx/.rvm/gems/ruby-1.9.3-p0@heroku-cedar/gems/activesupport-3.2.1/lib/active_support/dependencies.rb:251:in `require'
from /Users/xxx/.rvm/gems/ruby-1.9.3-p0@heroku-cedar/gems/railties-3.2.1/lib/rails/application.rb:103:in `require_environment!'
from /Users/xxx/.rvm/gems/ruby-1.9.3-p0@heroku-cedar/gems/railties-3.2.1/lib/rails/commands.rb:25:in `'
from script/rails:6:in `require'
from script/rails:6:in `

'
```