{"issue":{"created_at":"2011-11-01T13:03:31Z","state":"open","updated_at":"2011-11-18T09:21:39Z","user":{"gravatar_id":"e45dd84ccf5be0d04529debbcd15c05a","id":24421,"url":"https://api.github.com/users/dvyjones","login":"dvyjones","avatar_url":"https://secure.gravatar.com/avatar/e45dd84ccf5be0d04529debbcd15c05a?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png"},"comments":8,"body":"Hi,\r\n\r\nWhen I create an admin comment, I get the following error:\r\n\r\n    undefined method `route_instance_path' for nil:NilClass\r\n\r\nI'm using ActiveAdmin 0.3.3 and Rails 3.1.1. The full trace is [available here](https://gist.github.com/16bcfd88764c5abb4885). This may be related to issue #528.","assignee":null,"id":2110057,"number":708,"pull_request":{"patch_url":null,"html_url":null,"diff_url":null},"labels":[{"name":"Bug","color":"e10c02","url":"https://api.github.com/repos/gregbell/active_admin/labels/Bug"}],"title":"\"undefined method `route_instance_path' for nil:NilClass\" when creating a comment","closed_at":null,"html_url":"https://github.com/gregbell/active_admin/issues/708","milestone":null,"url":"https://api.github.com/repos/gregbell/active_admin/issues/708"},"action":"created","comment":{"created_at":"2011-11-18T09:21:39Z","updated_at":"2011-11-18T09:21:39Z","user":{"gravatar_id":"3f582b2bc3caf0d7074e85cdf2046a0f","id":224304,"url":"https://api.github.com/users/steakknife","login":"steakknife","avatar_url":"https://secure.gravatar.com/avatar/3f582b2bc3caf0d7074e85cdf2046a0f?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png"},"body":"+1 :: 1.9.2p290, 3.1.1, 0.3.4\r\n\r\n### NoMethodError in Admin::CommentsController#show\r\n\r\n    undefined method `route_instance_path' for nil:NilClass\r\n\r\n\r\n```\r\nactivesupport (3.1.1) lib/active_support/whiny_nil.rb:48:in `method_missing'\r\nactiveadmin (0.3.4) lib/active_admin/comments.rb:47:in `block (3 levels) in <top (required)>'\r\nactivesupport (3.1.1) lib/active_support/callbacks.rb:457:in `_run__4295348987191613425__process_action__2206591857616638567__callbacks'\r\nactivesupport (3.1.1) lib/active_support/callbacks.rb:386:in `_run_process_action_callbacks'\r\nactivesupport (3.1.1) lib/active_support/callbacks.rb:81:in `run_callbacks'\r\nactionpack (3.1.1) lib/abstract_controller/callbacks.rb:17:in `process_action'\r\nactionpack (3.1.1) lib/action_controller/metal/rescue.rb:17:in `process_action'\r\nactionpack (3.1.1) lib/action_controller/metal/instrumentation.rb:30:in `block in process_action'\r\nactivesupport (3.1.1) lib/active_support/notifications.rb:53:in `block in instrument'\r\nactivesupport (3.1.1) lib/active_support/notifications/instrumenter.rb:21:in `instrument'\r\nactivesupport (3.1.1) lib/active_support/notifications.rb:53:in `instrument'\r\nactionpack (3.1.1) lib/action_controller/metal/instrumentation.rb:29:in `process_action'\r\nactionpack (3.1.1) lib/action_controller/metal/params_wrapper.rb:201:in `process_action'\r\nactiverecord (3.1.1) lib/active_record/railties/controller_runtime.rb:18:in `process_action'\r\nactionpack (3.1.1) lib/abstract_controller/base.rb:121:in `process'\r\nactionpack (3.1.1) lib/abstract_controller/rendering.rb:45:in `process'\r\nactionpack (3.1.1) lib/action_controller/metal.rb:193:in `dispatch'\r\nactionpack (3.1.1) lib/action_controller/metal/rack_delegation.rb:14:in `dispatch'\r\nactionpack (3.1.1) lib/action_controller/metal.rb:236:in `block in action'\r\nactionpack (3.1.1) lib/action_dispatch/routing/route_set.rb:65:in `call'\r\nactionpack (3.1.1) lib/action_dispatch/routing/route_set.rb:65:in `dispatch'\r\nactionpack (3.1.1) lib/action_dispatch/routing/route_set.rb:29:in `call'\r\nrack-mount (0.8.3) lib/rack/mount/route_set.rb:152:in `block in call'\r\nrack-mount (0.8.3) lib/rack/mount/code_generation.rb:96:in `block in recognize'\r\nrack-mount (0.8.3) lib/rack/mount/code_generation.rb:103:in `optimized_each'\r\nrack-mount (0.8.3) lib/rack/mount/code_generation.rb:95:in `recognize'\r\nrack-mount (0.8.3) lib/rack/mount/route_set.rb:141:in `call'\r\nactionpack (3.1.1) lib/action_dispatch/routing/route_set.rb:532:in `call'\r\nsass (3.1.10) lib/sass/plugin/rack.rb:54:in `call'\r\nwarden (1.1.0) lib/warden/manager.rb:35:in `block in call'\r\nwarden (1.1.0) lib/warden/manager.rb:34:in `catch'\r\nwarden (1.1.0) lib/warden/manager.rb:34:in `call'\r\nactionpack (3.1.1) lib/action_dispatch/middleware/best_standards_support.rb:17:in `call'\r\nrack (1.3.5) lib/rack/etag.rb:23:in `call'\r\nrack (1.3.5) lib/rack/conditionalget.rb:25:in `call'\r\nactionpack (3.1.1) lib/action_dispatch/middleware/head.rb:14:in `call'\r\nactionpack (3.1.1) lib/action_dispatch/middleware/params_parser.rb:21:in `call'\r\nactionpack (3.1.1) lib/action_dispatch/middleware/flash.rb:243:in `call'\r\nrack (1.3.5) lib/rack/session/abstract/id.rb:195:in `context'\r\nrack (1.3.5) lib/rack/session/abstract/id.rb:190:in `call'\r\nactionpack (3.1.1) lib/action_dispatch/middleware/cookies.rb:331:in `call'\r\nactiverecord (3.1.1) lib/active_record/query_cache.rb:62:in `call'\r\nactiverecord (3.1.1) lib/active_record/connection_adapters/abstract/connection_pool.rb:477:in `call'\r\nactionpack (3.1.1) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call'\r\nactivesupport (3.1.1) lib/active_support/callbacks.rb:392:in `_run_call_callbacks'\r\nactivesupport (3.1.1) lib/active_support/callbacks.rb:81:in `run_callbacks'\r\nactionpack (3.1.1) lib/action_dispatch/middleware/callbacks.rb:28:in `call'\r\nactionpack (3.1.1) lib/action_dispatch/middleware/reloader.rb:68:in `call'\r\nrack (1.3.5) lib/rack/sendfile.rb:101:in `call'\r\nactionpack (3.1.1) lib/action_dispatch/middleware/remote_ip.rb:48:in `call'\r\nactionpack (3.1.1) lib/action_dispatch/middleware/show_exceptions.rb:47:in `call'\r\nrailties (3.1.1) lib/rails/rack/logger.rb:13:in `call'\r\nrack (1.3.5) lib/rack/methodoverride.rb:24:in `call'\r\nrack (1.3.5) lib/rack/runtime.rb:17:in `call'\r\nactivesupport (3.1.1) lib/active_support/cache/strategy/local_cache.rb:72:in `call'\r\nrack (1.3.5) lib/rack/lock.rb:15:in `call'\r\nactionpack (3.1.1) lib/action_dispatch/middleware/static.rb:53:in `call'\r\nrailties (3.1.1) lib/rails/engine.rb:456:in `call'\r\nrailties (3.1.1) lib/rails/rack/content_length.rb:16:in `call'\r\nrailties (3.1.1) lib/rails/rack/log_tailer.rb:14:in `call'\r\nrack (1.3.5) lib/rack/handler/webrick.rb:59:in `service'\r\n```","id":2787257,"url":"https://api.github.com/repos/gregbell/active_admin/issues/comments/2787257"}}