{"action":"created","issue":{"url":"https://api.github.com/repos/thoughtbot/administrate/issues/219","labels_url":"https://api.github.com/repos/thoughtbot/administrate/issues/219/labels{/name}","comments_url":"https://api.github.com/repos/thoughtbot/administrate/issues/219/comments","events_url":"https://api.github.com/repos/thoughtbot/administrate/issues/219/events","html_url":"https://github.com/thoughtbot/administrate/issues/219","id":116379593,"number":219,"title":"Install error","user":{"login":"johncblandii","id":134952,"avatar_url":"https://avatars.githubusercontent.com/u/134952?v=3","gravatar_id":"","url":"https://api.github.com/users/johncblandii","html_url":"https://github.com/johncblandii","followers_url":"https://api.github.com/users/johncblandii/followers","following_url":"https://api.github.com/users/johncblandii/following{/other_user}","gists_url":"https://api.github.com/users/johncblandii/gists{/gist_id}","starred_url":"https://api.github.com/users/johncblandii/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/johncblandii/subscriptions","organizations_url":"https://api.github.com/users/johncblandii/orgs","repos_url":"https://api.github.com/users/johncblandii/repos","events_url":"https://api.github.com/users/johncblandii/events{/privacy}","received_events_url":"https://api.github.com/users/johncblandii/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-11-11T17:12:21Z","updated_at":"2015-11-11T18:22:10Z","closed_at":null,"body":"We're hitting a problem installing Administrate. Any ideas would be helpful.\r\n\r\nSteps:\r\n- Add to `Gemfile`\r\n- `bundle`\r\n\r\nThe error below is the output. I noticed there is a file named `app/dashboards/#<class:0x007fcf52bfe248>_dashboard.rb` it creates.\r\n\r\n`dashboard_manifest.rb` has the following dashboards:\r\n```\r\n  DASHBOARDS = [\r\n    :#<class:0x007fcf52bfe248>s,\r\n    :#<class:0x007fcf52d7c520>s,\r\n    :#<class:0x007fcf567ea7e8>s,\r\n    :#<class:0x007fcf52f1f1c0>s,\r\n    :#<class:0x007fcf560eabf0>s,\r\n    :#<class:0x007fcf565a0898>s,\r\n    :#<class:0x007fcf520597f8>s,\r\n    :#<class:0x007fcf56509ba0>s,\r\n    :#<class:0x007fcf52cf6650>s,\r\n    :#<class:0x007fcf56202808>s,\r\n    :users,\r\n    :churches,\r\n    :locations,\r\n    :roles,\r\n    :users_roles,\r\n    :members,\r\n  ]\r\n```\r\n\r\nError output:\r\n```\r\n$: rails generate administrate:install\r\n      create  app/controllers/admin/application_controller.rb\r\n      create  app/dashboards/dashboard_manifest.rb\r\n       route  namespace :admin do\r\n    DashboardManifest::DASHBOARDS.each do |dashboard_resource|\r\n      resources dashboard_resource\r\n    end\r\n\r\n    root controller: DashboardManifest::ROOT_DASHBOARD, action: :index\r\n  end\r\n      create  app/dashboards/#<class:0x007fcf52bfe248>_dashboard.rb\r\n/Users/johncblandii/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/administrate-0.1.0/lib/generators/administrate/dashboard/dashboard_generator.rb:87:in `const_get': wrong constant name #<class:0x007fcf52bfe248> (NameError)\r\n\tfrom /Users/johncblandii/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/administrate-0.1.0/lib/generators/administrate/dashboard/dashboard_generator.rb:87:in `klass'\r\n\tfrom /Users/johncblandii/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/administrate-0.1.0/lib/generators/administrate/dashboard/dashboard_generator.rb:40:in `attributes'\r\n\tfrom (erb):11:in `template'\r\n\tfrom /Users/johncblandii/.rbenv/versions/2.2.2/lib/ruby/2.2.0/erb.rb:863:in `eval'\r\n\tfrom /Users/johncblandii/.rbenv/versions/2.2.2/lib/ruby/2.2.0/erb.rb:863:in `result'\r\n\tfrom /Users/johncblandii/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/thor-0.19.1/lib/thor/actions/file_manipulation.rb:116:in `block in template'\r\n\tfrom /Users/johncblandii/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/thor-0.19.1/lib/thor/actions/create_file.rb:53:in `call'\r\n\tfrom /Users/johncblandii/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/thor-0.19.1/lib/thor/actions/create_file.rb:53:in `render'\r\n\tfrom /Users/johncblandii/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/thor-0.19.1/lib/thor/actions/create_file.rb:62:in `block (2 levels) in invoke!'\r\n\tfrom /Users/johncblandii/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/thor-0.19.1/lib/thor/actions/create_file.rb:62:in `open'\r\n\tfrom /Users/johncblandii/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/thor-0.19.1/lib/thor/actions/create_file.rb:62:in `block in invoke!'\r\n\tfrom /Users/johncblandii/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/thor-0.19.1/lib/thor/actions/empty_directory.rb:116:in `call'\r\n\tfrom /Users/johncblandii/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/thor-0.19.1/lib/thor/actions/empty_directory.rb:116:in `invoke_with_conflict_check'\r\n\tfrom /Users/johncblandii/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/thor-0.19.1/lib/thor/actions/create_file.rb:60:in `invoke!'\r\n\tfrom /Users/johncblandii/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/thor-0.19.1/lib/thor/actions.rb:94:in `action'\r\n\tfrom /Users/johncblandii/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/thor-0.19.1/lib/thor/actions/create_file.rb:25:in `create_file'\r\n\tfrom /Users/johncblandii/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/thor-0.19.1/lib/thor/actions/file_manipulation.rb:115:in `template'\r\n\tfrom /Users/johncblandii/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/railties-4.2.4/lib/rails/generators/named_base.rb:26:in `block in template'\r\n\tfrom /Users/johncblandii/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/railties-4.2.4/lib/rails/generators/named_base.rb:60:in `inside_template'\r\n\tfrom /Users/johncblandii/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/railties-4.2.4/lib/rails/generators/named_base.rb:25:in `template'\r\n\tfrom /Users/johncblandii/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/administrate-0.1.0/lib/generators/administrate/dashboard/dashboard_generator.rb:27:in `create_dashboard_definition'\r\n\tfrom /Users/johncblandii/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/thor-0.19.1/lib/thor/command.rb:27:in `run'\r\n\tfrom /Users/johncblandii/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/thor-0.19.1/lib/thor/invocation.rb:126:in `invoke_command'\r\n\tfrom /Users/johncblandii/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/thor-0.19.1/lib/thor/invocation.rb:133:in `block in invoke_all'\r\n\tfrom /Users/johncblandii/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/thor-0.19.1/lib/thor/invocation.rb:133:in `each'\r\n\tfrom /Users/johncblandii/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/thor-0.19.1/lib/thor/invocation.rb:133:in `map'\r\n\tfrom /Users/johncblandii/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/thor-0.19.1/lib/thor/invocation.rb:133:in `invoke_all'\r\n\tfrom /Users/johncblandii/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/thor-0.19.1/lib/thor/group.rb:232:in `dispatch'\r\n\tfrom /Users/johncblandii/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/thor-0.19.1/lib/thor/base.rb:440:in `start'\r\n\tfrom /Users/johncblandii/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/railties-4.2.4/lib/rails/generators.rb:157:in `invoke'\r\n\tfrom /Users/johncblandii/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/administrate-0.1.0/lib/generators/administrate/install/install_generator.rb:29:in `block in run_dashboard_generators'\r\n\tfrom /Users/johncblandii/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/administrate-0.1.0/lib/generators/administrate/install/install_generator.rb:28:in `each'\r\n\tfrom /Users/johncblandii/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/administrate-0.1.0/lib/generators/administrate/install/install_generator.rb:28:in `run_dashboard_generators'\r\n\tfrom /Users/johncblandii/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/thor-0.19.1/lib/thor/command.rb:27:in `run'\r\n\tfrom /Users/johncblandii/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/thor-0.19.1/lib/thor/invocation.rb:126:in `invoke_command'\r\n\tfrom /Users/johncblandii/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/thor-0.19.1/lib/thor/invocation.rb:133:in `block in invoke_all'\r\n\tfrom /Users/johncblandii/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/thor-0.19.1/lib/thor/invocation.rb:133:in `each'\r\n\tfrom /Users/johncblandii/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/thor-0.19.1/lib/thor/invocation.rb:133:in `map'\r\n\tfrom /Users/johncblandii/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/thor-0.19.1/lib/thor/invocation.rb:133:in `invoke_all'\r\n\tfrom /Users/johncblandii/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/thor-0.19.1/lib/thor/group.rb:232:in `dispatch'\r\n\tfrom /Users/johncblandii/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/thor-0.19.1/lib/thor/base.rb:440:in `start'\r\n\tfrom /Users/johncblandii/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/railties-4.2.4/lib/rails/generators.rb:157:in `invoke'\r\n\tfrom /Users/johncblandii/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/railties-4.2.4/lib/rails/commands/generate.rb:13:in `<top (required)>'\r\n\tfrom /Users/johncblandii/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/dependencies.rb:274:in `require'\r\n\tfrom /Users/johncblandii/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/dependencies.rb:274:in `block in require'\r\n\tfrom /Users/johncblandii/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/dependencies.rb:240:in `load_dependency'\r\n\tfrom /Users/johncblandii/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/dependencies.rb:274:in `require'\r\n\tfrom /Users/johncblandii/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/railties-4.2.4/lib/rails/commands/commands_tasks.rb:123:in `require_command!'\r\n\tfrom /Users/johncblandii/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/railties-4.2.4/lib/rails/commands/commands_tasks.rb:130:in `generate_or_destroy'\r\n\tfrom /Users/johncblandii/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/railties-4.2.4/lib/rails/commands/commands_tasks.rb:50:in `generate'\r\n\tfrom /Users/johncblandii/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/railties-4.2.4/lib/rails/commands/commands_tasks.rb:39:in `run_command!'\r\n\tfrom /Users/johncblandii/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/railties-4.2.4/lib/rails/commands.rb:17:in `<top (required)>'\r\n\tfrom /Users/johncblandii/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/dependencies.rb:274:in `require'\r\n\tfrom /Users/johncblandii/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/dependencies.rb:274:in `block in require'\r\n\tfrom /Users/johncblandii/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/dependencies.rb:240:in `load_dependency'\r\n\tfrom /Users/johncblandii/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/dependencies.rb:274:in `require'\r\n\tfrom /Users/johncblandii/Work/myapp/bin/rails:8:in `<top (required)>'\r\n\tfrom /Users/johncblandii/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/dependencies.rb:268:in `load'\r\n\tfrom /Users/johncblandii/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/dependencies.rb:268:in `block in load'\r\n\tfrom /Users/johncblandii/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/dependencies.rb:240:in `load_dependency'\r\n\tfrom /Users/johncblandii/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.4/lib/active_support/dependencies.rb:268:in `load'\r\n\tfrom /Users/johncblandii/.rbenv/versions/2.2.2/lib/ruby/site_ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `require'\r\n\tfrom /Users/johncblandii/.rbenv/versions/2.2.2/lib/ruby/site_ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `require'\r\n\tfrom -e:1:in `<main>'\r\n```"},"comment":{"url":"https://api.github.com/repos/thoughtbot/administrate/issues/comments/155867066","html_url":"https://github.com/thoughtbot/administrate/issues/219#issuecomment-155867066","issue_url":"https://api.github.com/repos/thoughtbot/administrate/issues/219","id":155867066,"user":{"login":"graysonwright","id":829576,"avatar_url":"https://avatars.githubusercontent.com/u/829576?v=3","gravatar_id":"","url":"https://api.github.com/users/graysonwright","html_url":"https://github.com/graysonwright","followers_url":"https://api.github.com/users/graysonwright/followers","following_url":"https://api.github.com/users/graysonwright/following{/other_user}","gists_url":"https://api.github.com/users/graysonwright/gists{/gist_id}","starred_url":"https://api.github.com/users/graysonwright/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/graysonwright/subscriptions","organizations_url":"https://api.github.com/users/graysonwright/orgs","repos_url":"https://api.github.com/users/graysonwright/repos","events_url":"https://api.github.com/users/graysonwright/events{/privacy}","received_events_url":"https://api.github.com/users/graysonwright/received_events","type":"User","site_admin":false},"created_at":"2015-11-11T18:22:10Z","updated_at":"2015-11-11T18:22:10Z","body":"interesting. Can you do a couple things for me in your rails console?\r\n\r\n- `ActiveRecord::Base.descendants`\r\n- `ActiveRecord::Base.descendants.map(&:table_name)`"}}