{"action":"opened","issue":{"url":"https://api.github.com/repos/activeadmin/activeadmin/issues/4148","labels_url":"https://api.github.com/repos/activeadmin/activeadmin/issues/4148/labels{/name}","comments_url":"https://api.github.com/repos/activeadmin/activeadmin/issues/4148/comments","events_url":"https://api.github.com/repos/activeadmin/activeadmin/issues/4148/events","html_url":"https://github.com/activeadmin/activeadmin/issues/4148","id":109669734,"number":4148,"title":"Uninitialized constant error after \"rails generate active_admin:resource <model_name>\"","user":{"login":"giovannioliveira","id":5629861,"avatar_url":"https://avatars.githubusercontent.com/u/5629861?v=3","gravatar_id":"","url":"https://api.github.com/users/giovannioliveira","html_url":"https://github.com/giovannioliveira","followers_url":"https://api.github.com/users/giovannioliveira/followers","following_url":"https://api.github.com/users/giovannioliveira/following{/other_user}","gists_url":"https://api.github.com/users/giovannioliveira/gists{/gist_id}","starred_url":"https://api.github.com/users/giovannioliveira/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/giovannioliveira/subscriptions","organizations_url":"https://api.github.com/users/giovannioliveira/orgs","repos_url":"https://api.github.com/users/giovannioliveira/repos","events_url":"https://api.github.com/users/giovannioliveira/events{/privacy}","received_events_url":"https://api.github.com/users/giovannioliveira/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-10-04T08:34:14Z","updated_at":"2015-10-04T08:34:14Z","closed_at":null,"body":"<path>/app/admin/test_model.rb:1:in `<top (required)>': uninitialized constant TestModel (NameError)\r\n\tfrom /var/lib/gems/1.9.1/gems/activeadmin-1.0.0.pre2/lib/active_admin/application.rb:209:in `block in load'\r\n\tfrom /var/lib/gems/1.9.1/gems/activeadmin-1.0.0.pre2/lib/active_admin/error.rb:41:in `capture'\r\n\tfrom /var/lib/gems/1.9.1/gems/activeadmin-1.0.0.pre2/lib/active_admin/application.rb:209:in `load'\r\n\tfrom /var/lib/gems/1.9.1/gems/activeadmin-1.0.0.pre2/lib/active_admin/application.rb:201:in `block in load!'\r\n\tfrom /var/lib/gems/1.9.1/gems/activeadmin-1.0.0.pre2/lib/active_admin/application.rb:201:in `each'\r\n\tfrom /var/lib/gems/1.9.1/gems/activeadmin-1.0.0.pre2/lib/active_admin/application.rb:201:in `load!'\r\n\tfrom /var/lib/gems/1.9.1/gems/activeadmin-1.0.0.pre2/lib/active_admin/application.rb:223:in `routes'\r\n\tfrom /var/lib/gems/1.9.1/gems/activeadmin-1.0.0.pre2/lib/active_admin.rb:79:in `routes'\r\n\tfrom <path>//config/routes.rb:3:in `block in <top (required)>'\r\n\tfrom /var/lib/gems/1.9.1/gems/actionpack-4.2.3/lib/action_dispatch/routing/route_set.rb:434:in `instance_exec'\r\n\tfrom /var/lib/gems/1.9.1/gems/actionpack-4.2.3/lib/action_dispatch/routing/route_set.rb:434:in `eval_block'\r\n\tfrom /var/lib/gems/1.9.1/gems/actionpack-4.2.3/lib/action_dispatch/routing/route_set.rb:412:in `draw'\r\n\tfrom <path>/config/routes.rb:1:in `<top (required)>'\r\n\tfrom /var/lib/gems/1.9.1/gems/railties-4.2.3/lib/rails/application/routes_reloader.rb:40:in `block in load_paths'\r\n\tfrom /var/lib/gems/1.9.1/gems/railties-4.2.3/lib/rails/application/routes_reloader.rb:40:in `each'\r\n\tfrom /var/lib/gems/1.9.1/gems/railties-4.2.3/lib/rails/application/routes_reloader.rb:40:in `load_paths'\r\n\tfrom /var/lib/gems/1.9.1/gems/railties-4.2.3/lib/rails/application/routes_reloader.rb:16:in `reload!'\r\n\tfrom /var/lib/gems/1.9.1/gems/railties-4.2.3/lib/rails/application/routes_reloader.rb:26:in `block in updater'\r\n\tfrom /var/lib/gems/1.9.1/gems/activesupport-4.2.3/lib/active_support/file_update_checker.rb:75:in `call'\r\n\tfrom /var/lib/gems/1.9.1/gems/activesupport-4.2.3/lib/active_support/file_update_checker.rb:75:in `execute'\r\n\tfrom /var/lib/gems/1.9.1/gems/railties-4.2.3/lib/rails/application/routes_reloader.rb:27:in `updater'\r\n\tfrom /var/lib/gems/1.9.1/gems/railties-4.2.3/lib/rails/application/routes_reloader.rb:7:in `execute_if_updated'\r\n\tfrom /var/lib/gems/1.9.1/gems/railties-4.2.3/lib/rails/application/finisher.rb:69:in `block in <module:Finisher>'\r\n\tfrom /var/lib/gems/1.9.1/gems/railties-4.2.3/lib/rails/initializable.rb:30:in `instance_exec'\r\n\tfrom /var/lib/gems/1.9.1/gems/railties-4.2.3/lib/rails/initializable.rb:30:in `run'\r\n\tfrom /var/lib/gems/1.9.1/gems/railties-4.2.3/lib/rails/initializable.rb:55:in `block in run_initializers'\r\n\tfrom /usr/lib/ruby/1.9.1/tsort.rb:150:in `block in tsort_each'\r\n\tfrom /usr/lib/ruby/1.9.1/tsort.rb:183:in `block (2 levels) in each_strongly_connected_component'\r\n\tfrom /usr/lib/ruby/1.9.1/tsort.rb:219:in `each_strongly_connected_component_from'\r\n\tfrom /usr/lib/ruby/1.9.1/tsort.rb:182:in `block in each_strongly_connected_component'\r\n\tfrom /usr/lib/ruby/1.9.1/tsort.rb:180:in `each'\r\n\tfrom /usr/lib/ruby/1.9.1/tsort.rb:180:in `each_strongly_connected_component'\r\n\tfrom /usr/lib/ruby/1.9.1/tsort.rb:148:in `tsort_each'\r\n\tfrom /var/lib/gems/1.9.1/gems/railties-4.2.3/lib/rails/initializable.rb:54:in `run_initializers'\r\n\tfrom /var/lib/gems/1.9.1/gems/railties-4.2.3/lib/rails/application.rb:352:in `initialize!'\r\n\tfrom <path>/config/environment.rb:5:in `<top (required)>'\r\n\tfrom <path>/config.ru:3:in `block in <main>'\r\n\tfrom /var/lib/gems/1.9.1/gems/rack-1.6.4/lib/rack/builder.rb:55:in `instance_eval'\r\n\tfrom /var/lib/gems/1.9.1/gems/rack-1.6.4/lib/rack/builder.rb:55:in `initialize'\r\n\tfrom <path>/config.ru:in `new'\r\n\tfrom <path>/config.ru:in `<main>'\r\n\tfrom /var/lib/gems/1.9.1/gems/rack-1.6.4/lib/rack/builder.rb:49:in `eval'\r\n\tfrom /var/lib/gems/1.9.1/gems/rack-1.6.4/lib/rack/builder.rb:49:in `new_from_string'\r\n\tfrom /var/lib/gems/1.9.1/gems/rack-1.6.4/lib/rack/builder.rb:40:in `parse_file'\r\n\tfrom /var/lib/gems/1.9.1/gems/rack-1.6.4/lib/rack/server.rb:299:in `build_app_and_options_from_config'\r\n\tfrom /var/lib/gems/1.9.1/gems/rack-1.6.4/lib/rack/server.rb:208:in `app'\r\n\tfrom /var/lib/gems/1.9.1/gems/railties-4.2.3/lib/rails/commands/server.rb:61:in `app'\r\n\tfrom /var/lib/gems/1.9.1/gems/rack-1.6.4/lib/rack/server.rb:336:in `wrapped_app'\r\n\tfrom /var/lib/gems/1.9.1/gems/railties-4.2.3/lib/rails/commands/server.rb:139:in `log_to_stdout'\r\n\tfrom /var/lib/gems/1.9.1/gems/railties-4.2.3/lib/rails/commands/server.rb:78:in `start'\r\n\tfrom /var/lib/gems/1.9.1/gems/railties-4.2.3/lib/rails/commands/commands_tasks.rb:80:in `block in server'\r\n\tfrom /var/lib/gems/1.9.1/gems/railties-4.2.3/lib/rails/commands/commands_tasks.rb:75:in `tap'\r\n\tfrom /var/lib/gems/1.9.1/gems/railties-4.2.3/lib/rails/commands/commands_tasks.rb:75:in `server'\r\n\tfrom /var/lib/gems/1.9.1/gems/railties-4.2.3/lib/rails/commands/commands_tasks.rb:39:in `run_command!'\r\n\tfrom /var/lib/gems/1.9.1/gems/railties-4.2.3/lib/rails/commands.rb:17:in `<top (required)>'\r\n\tfrom <path>/bin/rails:8:in `require'\r\n\tfrom <path>/bin/rails:8:in `<top (required)>'\r\n\tfrom /var/lib/gems/1.9.1/gems/spring-1.4.0/lib/spring/client/rails.rb:28:in `load'\r\n\tfrom /var/lib/gems/1.9.1/gems/spring-1.4.0/lib/spring/client/rails.rb:28:in `call'\r\n\tfrom /var/lib/gems/1.9.1/gems/spring-1.4.0/lib/spring/client/command.rb:7:in `call'\r\n\tfrom /var/lib/gems/1.9.1/gems/spring-1.4.0/lib/spring/client.rb:28:in `run'\r\n\tfrom /var/lib/gems/1.9.1/gems/spring-1.4.0/bin/spring:49:in `<top (required)>'\r\n\tfrom /var/lib/gems/1.9.1/gems/spring-1.4.0/lib/spring/binstub.rb:11:in `load'\r\n\tfrom /var/lib/gems/1.9.1/gems/spring-1.4.0/lib/spring/binstub.rb:11:in `<top (required)>'\r\n\tfrom /usr/local/lib/site_ruby/1.9.1/rubygems/core_ext/kernel_require.rb:54:in `require'\r\n\tfrom /usr/local/lib/site_ruby/1.9.1/rubygems/core_ext/kernel_require.rb:54:in `require'\r\n\tfrom <path>/bin/spring:13:in `<top (required)>'\r\n\tfrom bin/rails:3:in `load'\r\n\tfrom bin/rails:3:in `<main>'"}}