{"action":"created","issue":{"url":"https://api.github.com/repos/8398a7/abilitysheet/issues/149","labels_url":"https://api.github.com/repos/8398a7/abilitysheet/issues/149/labels{/name}","comments_url":"https://api.github.com/repos/8398a7/abilitysheet/issues/149/comments","events_url":"https://api.github.com/repos/8398a7/abilitysheet/issues/149/events","html_url":"https://github.com/8398a7/abilitysheet/issues/149","id":93276649,"number":149,"title":"[production][sheets#show] NoMethodError: undefined method `order' for nil:NilClass","user":{"login":"8398a7","id":8043276,"avatar_url":"https://avatars.githubusercontent.com/u/8043276?v=3","gravatar_id":"","url":"https://api.github.com/users/8398a7","html_url":"https://github.com/8398a7","followers_url":"https://api.github.com/users/8398a7/followers","following_url":"https://api.github.com/users/8398a7/following{/other_user}","gists_url":"https://api.github.com/users/8398a7/gists{/gist_id}","starred_url":"https://api.github.com/users/8398a7/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/8398a7/subscriptions","organizations_url":"https://api.github.com/users/8398a7/orgs","repos_url":"https://api.github.com/users/8398a7/repos","events_url":"https://api.github.com/users/8398a7/events{/privacy}","received_events_url":"https://api.github.com/users/8398a7/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/8398a7/abilitysheet/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-07-06T13:16:09Z","updated_at":"2015-07-06T13:17:06Z","closed_at":null,"body":"[See this exception on Errbit](https://iidx12.herokuapp.com/apps/55544ca4386532000f000000/problems/559a7c1a366434000f0000e8)\n# NoMethodError: undefined method `order&#39; for nil:NilClass #\n## Summary ##\n### URL ###\n[http://iidx12.tk/abilitysheet/sheets/2974-7170/clear](http://iidx12.tk/abilitysheet/sheets/2974-7170/clear)\"\n### Where ###\nsheets#show\n\n### Occured ###\nJul 06 10:01pm\n\n### Similar ###\n0\n\n## Params ##\n~~~\n{\n  &quot;action&quot; =&gt; &quot;show&quot;,\n  &quot;controller&quot; =&gt; &quot;sheets&quot;,\n  &quot;iidxid&quot; =&gt; &quot;2974-7170&quot;,\n  &quot;type&quot; =&gt; &quot;clear&quot;\n}\n~~~\n\n## Session ##\n~~~\n{\n  &quot;_csrf_token&quot; =&gt; &quot;[FILTERED]&quot;,\n  &quot;session_id&quot; =&gt; &quot;cef9ee63fadd94ea2667f9fc3a8cf888&quot;,\n  &quot;warden_user_user_key&quot; =&gt; &quot;[[\\&quot;1125\\&quot;], \\&quot;$2a$10$eSbP0m8R94U41S9OzmWs9u\\&quot;]&quot;\n}\n~~~\n\n## Backtrace ##\n~~~\n32:  app/controllers/sheets_controller.rb -> **clear**\n9:  app/controllers/sheets_controller.rb -> **show**\n4:  [GEM_ROOT]/gems/actionpack-4.2.3/lib/action_controller/metal/implicit_render.rb -> **send_action**\n198:  [GEM_ROOT]/gems/actionpack-4.2.3/lib/abstract_controller/base.rb -> **process_action**\n10:  [GEM_ROOT]/gems/actionpack-4.2.3/lib/action_controller/metal/rendering.rb -> **process_action**\n20:  [GEM_ROOT]/gems/actionpack-4.2.3/lib/abstract_controller/callbacks.rb -> **block in process_action**\n115:  [GEM_ROOT]/gems/activesupport-4.2.3/lib/active_support/callbacks.rb -> **call**\n115:  [GEM_ROOT]/gems/activesupport-4.2.3/lib/active_support/callbacks.rb -> **call**\n553:  [GEM_ROOT]/gems/activesupport-4.2.3/lib/active_support/callbacks.rb -> **block (2 levels) in compile**\n503:  [GEM_ROOT]/gems/activesupport-4.2.3/lib/active_support/callbacks.rb -> **call**\n503:  [GEM_ROOT]/gems/activesupport-4.2.3/lib/active_support/callbacks.rb -> **call**\n88:  [GEM_ROOT]/gems/activesupport-4.2.3/lib/active_support/callbacks.rb -> **run_callbacks**\n19:  [GEM_ROOT]/gems/actionpack-4.2.3/lib/abstract_controller/callbacks.rb -> **process_action**\n29:  [GEM_ROOT]/gems/actionpack-4.2.3/lib/action_controller/metal/rescue.rb -> **process_action**\n32:  [GEM_ROOT]/gems/actionpack-4.2.3/lib/action_controller/metal/instrumentation.rb -> **block in process_action**\n164:  [GEM_ROOT]/gems/activesupport-4.2.3/lib/active_support/notifications.rb -> **block in instrument**\n20:  [GEM_ROOT]/gems/activesupport-4.2.3/lib/active_support/notifications/instrumenter.rb -> **instrument**\n164:  [GEM_ROOT]/gems/activesupport-4.2.3/lib/active_support/notifications.rb -> **instrument**\n30:  [GEM_ROOT]/gems/actionpack-4.2.3/lib/action_controller/metal/instrumentation.rb -> **process_action**\n250:  [GEM_ROOT]/gems/actionpack-4.2.3/lib/action_controller/metal/params_wrapper.rb -> **process_action**\n18:  [GEM_ROOT]/gems/activerecord-4.2.3/lib/active_record/railties/controller_runtime.rb -> **process_action**\n137:  [GEM_ROOT]/gems/actionpack-4.2.3/lib/abstract_controller/base.rb -> **process**\n30:  [GEM_ROOT]/gems/actionview-4.2.3/lib/action_view/rendering.rb -> **process**\n77:  [GEM_ROOT]/gems/rack-mini-profiler-0.9.3/lib/mini_profiler/profiling_methods.rb -> **block in profile_method**\n196:  [GEM_ROOT]/gems/actionpack-4.2.3/lib/action_controller/metal.rb -> **dispatch**\n13:  [GEM_ROOT]/gems/actionpack-4.2.3/lib/action_controller/metal/rack_delegation.rb -> **dispatch**\n237:  [GEM_ROOT]/gems/actionpack-4.2.3/lib/action_controller/metal.rb -> **block in action**\n76:  [GEM_ROOT]/gems/actionpack-4.2.3/lib/action_dispatch/routing/route_set.rb -> **call**\n76:  [GEM_ROOT]/gems/actionpack-4.2.3/lib/action_dispatch/routing/route_set.rb -> **dispatch**\n45:  [GEM_ROOT]/gems/actionpack-4.2.3/lib/action_dispatch/routing/route_set.rb -> **serve**\n43:  [GEM_ROOT]/gems/actionpack-4.2.3/lib/action_dispatch/journey/router.rb -> **block in serve**\n30:  [GEM_ROOT]/gems/actionpack-4.2.3/lib/action_dispatch/journey/router.rb -> **each**\n30:  [GEM_ROOT]/gems/actionpack-4.2.3/lib/action_dispatch/journey/router.rb -> **serve**\n821:  [GEM_ROOT]/gems/actionpack-4.2.3/lib/action_dispatch/routing/route_set.rb -> **call**\n67:  [GEM_ROOT]/gems/newrelic_rpm-3.12.0.288/lib/new_relic/agent/instrumentation/middleware_tracing.rb -> **call**\n12:  [GEM_ROOT]/gems/rack-pjax-0.8.0/lib/rack/pjax.rb -> **call**\n67:  [GEM_ROOT]/gems/newrelic_rpm-3.12.0.288/lib/new_relic/agent/instrumentation/middleware_tracing.rb -> **call**\n30:  [GEM_ROOT]/gems/newrelic_rpm-3.12.0.288/lib/new_relic/rack/agent_hooks.rb -> **traced_call**\n67:  [GEM_ROOT]/gems/newrelic_rpm-3.12.0.288/lib/new_relic/agent/instrumentation/middleware_tracing.rb -> **call**\n32:  [GEM_ROOT]/gems/newrelic_rpm-3.12.0.288/lib/new_relic/rack/browser_monitoring.rb -> **traced_call**\n67:  [GEM_ROOT]/gems/newrelic_rpm-3.12.0.288/lib/new_relic/agent/instrumentation/middleware_tracing.rb -> **call**\n17:  [GEM_ROOT]/gems/rack-1.6.4/lib/rack/config.rb -> **call**\n67:  [GEM_ROOT]/gems/newrelic_rpm-3.12.0.288/lib/new_relic/agent/instrumentation/middleware_tracing.rb -> **call**\n35:  [GEM_ROOT]/gems/warden-1.2.3/lib/warden/manager.rb -> **block in call**\n34:  [GEM_ROOT]/gems/warden-1.2.3/lib/warden/manager.rb -> **catch**\n34:  [GEM_ROOT]/gems/warden-1.2.3/lib/warden/manager.rb -> **call**\n67:  [GEM_ROOT]/gems/newrelic_rpm-3.12.0.288/lib/new_relic/agent/instrumentation/middleware_tracing.rb -> **call**\n24:  [GEM_ROOT]/gems/rack-1.6.4/lib/rack/etag.rb -> **call**\n67:  [GEM_ROOT]/gems/newrelic_rpm-3.12.0.288/lib/new_relic/agent/instrumentation/middleware_tracing.rb -> **call**\n25:  [GEM_ROOT]/gems/rack-1.6.4/lib/rack/conditionalget.rb -> **call**\n67:  [GEM_ROOT]/gems/newrelic_rpm-3.12.0.288/lib/new_relic/agent/instrumentation/middleware_tracing.rb -> **call**\n13:  [GEM_ROOT]/gems/rack-1.6.4/lib/rack/head.rb -> **call**\n67:  [GEM_ROOT]/gems/newrelic_rpm-3.12.0.288/lib/new_relic/agent/instrumentation/middleware_tracing.rb -> **call**\n27:  [GEM_ROOT]/gems/remotipart-1.2.1/lib/remotipart/middleware.rb -> **call**\n67:  [GEM_ROOT]/gems/newrelic_rpm-3.12.0.288/lib/new_relic/agent/instrumentation/middleware_tracing.rb -> **call**\n27:  [GEM_ROOT]/gems/actionpack-4.2.3/lib/action_dispatch/middleware/params_parser.rb -> **call**\n67:  [GEM_ROOT]/gems/newrelic_rpm-3.12.0.288/lib/new_relic/agent/instrumentation/middleware_tracing.rb -> **call**\n260:  [GEM_ROOT]/gems/actionpack-4.2.3/lib/action_dispatch/middleware/flash.rb -> **call**\n67:  [GEM_ROOT]/gems/newrelic_rpm-3.12.0.288/lib/new_relic/agent/instrumentation/middleware_tracing.rb -> **call**\n225:  [GEM_ROOT]/gems/rack-1.6.4/lib/rack/session/abstract/id.rb -> **context**\n220:  [GEM_ROOT]/gems/rack-1.6.4/lib/rack/session/abstract/id.rb -> **call**\n67:  [GEM_ROOT]/gems/newrelic_rpm-3.12.0.288/lib/new_relic/agent/instrumentation/middleware_tracing.rb -> **call**\n560:  [GEM_ROOT]/gems/actionpack-4.2.3/lib/action_dispatch/middleware/cookies.rb -> **call**\n67:  [GEM_ROOT]/gems/newrelic_rpm-3.12.0.288/lib/new_relic/agent/instrumentation/middleware_tracing.rb -> **call**\n36:  [GEM_ROOT]/gems/activerecord-4.2.3/lib/active_record/query_cache.rb -> **call**\n67:  [GEM_ROOT]/gems/newrelic_rpm-3.12.0.288/lib/new_relic/agent/instrumentation/middleware_tracing.rb -> **call**\n653:  [GEM_ROOT]/gems/activerecord-4.2.3/lib/active_record/connection_adapters/abstract/connection_pool.rb -> **call**\n67:  [GEM_ROOT]/gems/newrelic_rpm-3.12.0.288/lib/new_relic/agent/instrumentation/middleware_tracing.rb -> **call**\n29:  [GEM_ROOT]/gems/actionpack-4.2.3/lib/action_dispatch/middleware/callbacks.rb -> **block in call**\n84:  [GEM_ROOT]/gems/activesupport-4.2.3/lib/active_support/callbacks.rb -> **run_callbacks**\n27:  [GEM_ROOT]/gems/actionpack-4.2.3/lib/action_dispatch/middleware/callbacks.rb -> **call**\n67:  [GEM_ROOT]/gems/newrelic_rpm-3.12.0.288/lib/new_relic/agent/instrumentation/middleware_tracing.rb -> **call**\n78:  [GEM_ROOT]/gems/actionpack-4.2.3/lib/action_dispatch/middleware/remote_ip.rb -> **call**\n67:  [GEM_ROOT]/gems/newrelic_rpm-3.12.0.288/lib/new_relic/agent/instrumentation/middleware_tracing.rb -> **call**\n67:  [GEM_ROOT]/gems/newrelic_rpm-3.12.0.288/lib/new_relic/agent/instrumentation/middleware_tracing.rb -> **call**\n17:  [GEM_ROOT]/gems/actionpack-4.2.3/lib/action_dispatch/middleware/debug_exceptions.rb -> **call**\n67:  [GEM_ROOT]/gems/newrelic_rpm-3.12.0.288/lib/new_relic/agent/instrumentation/middleware_tracing.rb -> **call**\n30:  [GEM_ROOT]/gems/actionpack-4.2.3/lib/action_dispatch/middleware/show_exceptions.rb -> **call**\n67:  [GEM_ROOT]/gems/newrelic_rpm-3.12.0.288/lib/new_relic/agent/instrumentation/middleware_tracing.rb -> **call**\n38:  [GEM_ROOT]/gems/railties-4.2.3/lib/rails/rack/logger.rb -> **call_app**\n22:  [GEM_ROOT]/gems/railties-4.2.3/lib/rails/rack/logger.rb -> **call**\n67:  [GEM_ROOT]/gems/newrelic_rpm-3.12.0.288/lib/new_relic/agent/instrumentation/middleware_tracing.rb -> **call**\n8:  [GEM_ROOT]/gems/request_store-1.1.0/lib/request_store/middleware.rb -> **call**\n67:  [GEM_ROOT]/gems/newrelic_rpm-3.12.0.288/lib/new_relic/agent/instrumentation/middleware_tracing.rb -> **call**\n21:  [GEM_ROOT]/gems/actionpack-4.2.3/lib/action_dispatch/middleware/request_id.rb -> **call**\n67:  [GEM_ROOT]/gems/newrelic_rpm-3.12.0.288/lib/new_relic/agent/instrumentation/middleware_tracing.rb -> **call**\n22:  [GEM_ROOT]/gems/rack-1.6.4/lib/rack/methodoverride.rb -> **call**\n67:  [GEM_ROOT]/gems/newrelic_rpm-3.12.0.288/lib/new_relic/agent/instrumentation/middleware_tracing.rb -> **call**\n18:  [GEM_ROOT]/gems/rack-1.6.4/lib/rack/runtime.rb -> **call**\n67:  [GEM_ROOT]/gems/newrelic_rpm-3.12.0.288/lib/new_relic/agent/instrumentation/middleware_tracing.rb -> **call**\n28:  [GEM_ROOT]/gems/activesupport-4.2.3/lib/active_support/cache/strategy/local_cache_middleware.rb -> **call**\n67:  [GEM_ROOT]/gems/newrelic_rpm-3.12.0.288/lib/new_relic/agent/instrumentation/middleware_tracing.rb -> **call**\n113:  [GEM_ROOT]/gems/rack-1.6.4/lib/rack/sendfile.rb -> **call**\n67:  [GEM_ROOT]/gems/newrelic_rpm-3.12.0.288/lib/new_relic/agent/instrumentation/middleware_tracing.rb -> **call**\n67:  [GEM_ROOT]/gems/newrelic_rpm-3.12.0.288/lib/new_relic/agent/instrumentation/middleware_tracing.rb -> **call**\n167:  [GEM_ROOT]/gems/rack-mini-profiler-0.9.3/lib/mini_profiler/profiler.rb -> **call**\n67:  [GEM_ROOT]/gems/newrelic_rpm-3.12.0.288/lib/new_relic/agent/instrumentation/middleware_tracing.rb -> **call**\n518:  [GEM_ROOT]/gems/railties-4.2.3/lib/rails/engine.rb -> **call**\n165:  [GEM_ROOT]/gems/railties-4.2.3/lib/rails/application.rb -> **call**\n67:  [GEM_ROOT]/gems/newrelic_rpm-3.12.0.288/lib/new_relic/agent/instrumentation/middleware_tracing.rb -> **call**\n66:  [GEM_ROOT]/gems/rack-1.6.4/lib/rack/urlmap.rb -> **block in call**\n50:  [GEM_ROOT]/gems/rack-1.6.4/lib/rack/urlmap.rb -> **each**\n50:  [GEM_ROOT]/gems/rack-1.6.4/lib/rack/urlmap.rb -> **call**\n80:  [GEM_ROOT]/gems/rack-cors-0.4.0/lib/rack/cors.rb -> **call**\n580:  [GEM_ROOT]/gems/unicorn-4.9.0/lib/unicorn/http_server.rb -> **process_client**\n52:  [GEM_ROOT]/gems/unicorn-worker-killer-0.4.3/lib/unicorn/worker_killer.rb -> **process_client**\n92:  [GEM_ROOT]/gems/unicorn-worker-killer-0.4.3/lib/unicorn/worker_killer.rb -> **process_client**\n674:  [GEM_ROOT]/gems/unicorn-4.9.0/lib/unicorn/http_server.rb -> **worker_loop**\n529:  [GEM_ROOT]/gems/unicorn-4.9.0/lib/unicorn/http_server.rb -> **spawn_missing_workers**\n540:  [GEM_ROOT]/gems/unicorn-4.9.0/lib/unicorn/http_server.rb -> **maintain_worker_count**\n294:  [GEM_ROOT]/gems/unicorn-4.9.0/lib/unicorn/http_server.rb -> **join**\n209:  [GEM_ROOT]/gems/unicorn-4.9.0/bin/unicorn_rails -> **&lt;top (required)&gt;**\n23:  [GEM_ROOT]/bin/unicorn_rails -> **load**\n23:  [GEM_ROOT]/bin/unicorn_rails -> **&lt;main&gt;**\n~~~\n\n## Environment ##\n| Key        | Value      |\n|------------|------------|\n| REMOTE_ADDR | 127.0.0.1 |\n| REQUEST_METHOD | GET |\n| REQUEST_PATH | /abilitysheet/sheets/2974-7170/clear |\n| PATH_INFO | /sheets/2974-7170/clear |\n| REQUEST_URI | /abilitysheet/sheets/2974-7170/clear |\n| SERVER_PROTOCOL | HTTP/1.0 |\n| HTTP_VERSION | HTTP/1.0 |\n| HTTP_X_REAL_IP | 114.170.198.111 |\n| HTTP_X_FORWARDED_FOR | 114.170.198.111 |\n| HTTP_HOST | iidx12.tk |\n| HTTP_CONNECTION | close |\n| HTTP_USER_AGENT | Mozilla/5.0 (Android; Mobile; rv:39.0) Gecko/39.0 Firefox/39.0 |\n| HTTP_ACCEPT | text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8 |\n| HTTP_ACCEPT_LANGUAGE | ja,ja-JP;q=0.8,en-US;q=0.5,en;q=0.3 |\n| HTTP_ACCEPT_ENCODING | gzip, deflate |\n| HTTP_PRAGMA | no-cache |\n| HTTP_CACHE_CONTROL | no-cache |\n| rack_url_scheme | http |\n| SERVER_NAME | iidx12.tk |\n| SERVER_PORT | 80 |\n| QUERY_STRING |  |\n| rack_hijack | #&lt;Proc:0x007fd9fe6c3ba0@/home/rails/deploy/abilitysheet/shared/bundle/ruby/2.2.0/gems/unicorn-4.9.0/lib/unicorn/http_request.rb:111&gt; |\n| rack_multiprocess | true |\n| rack_multithread | false |\n| rack_run_once | false |\n| rack_version | [&quot;1&quot;, &quot;2&quot;] |\n| SCRIPT_NAME | /abilitysheet |\n| SERVER_SOFTWARE | Unicorn 4.9.0 |\n| rack_hijack? | true |\n| rack_logger | #&lt;Logger:0x007fd9f5f03a80&gt; |\n| rack_cors | #&lt;Rack::Cors::Result:0x007fd9fe6c3b78&gt; |\n| newrelic_transaction_started | true |\n| ORIGINAL_FULLPATH | /abilitysheet/sheets/2974-7170/clear |\n| ORIGINAL_SCRIPT_NAME | /abilitysheet |\n| action_dispatch_parameter_filter | [&quot;password&quot;, &quot;client_secret&quot;, &quot;code&quot;, &quot;token&quot;] |\n| action_dispatch_redirect_filter | [] |\n| action_dispatch_show_exceptions | true |\n| action_dispatch_show_detailed_exceptions | false |\n| action_dispatch_cookies_serializer | json |\n| action_dispatch_cookies_digest |  |\n| ROUTES_70287092499440_SCRIPT_NAME | /abilitysheet |\n| action_dispatch_request_id | f7738c8e-5639-4961-af24-4dfecb2b15f7 |\n| action_dispatch_remote_ip | 114.170.198.111 |\n| rack_request_query_string |  |\n| rack_request_query_hash |  |\n| warden | Warden::Proxy:70287127633720 @config={:default_scope=&gt;:user, :scope_defaults=&gt;{}, :default_strategies=&gt;{:user=&gt;[:rememberable, :database_authenticatable], :sheet=&gt;[]}, :intercept_401=&gt;false, :failure_app=&gt;#&lt;Devise::Delegator:0x007fd9f98252f0&gt;} |\n| api_tilt_root | /home/rails/deploy/abilitysheet/releases/20150706035623/app/views/api |\n| action_dispatch_request_path_parameters | {&quot;controller&quot;=&gt;&quot;sheets&quot;, &quot;action&quot;=&gt;&quot;show&quot;, &quot;iidxid&quot;=&gt;&quot;2974-7170&quot;, &quot;type&quot;=&gt;&quot;clear&quot;} |\n| action_dispatch_request_content_type |  |\n| action_dispatch_request_request_parameters |  |\n| action_dispatch_request_query_parameters |  |\n| action_dispatch_request_parameters | {&quot;controller&quot;=&gt;&quot;sheets&quot;, &quot;action&quot;=&gt;&quot;show&quot;, &quot;iidxid&quot;=&gt;&quot;2974-7170&quot;, &quot;type&quot;=&gt;&quot;clear&quot;} |\n| action_dispatch_request_formats | [&quot;text/html&quot;] |\n| action_dispatch_request_flash_hash |  |\n"},"comment":{"url":"https://api.github.com/repos/8398a7/abilitysheet/issues/comments/118851816","html_url":"https://github.com/8398a7/abilitysheet/issues/149#issuecomment-118851816","issue_url":"https://api.github.com/repos/8398a7/abilitysheet/issues/149","id":118851816,"user":{"login":"8398a7","id":8043276,"avatar_url":"https://avatars.githubusercontent.com/u/8043276?v=3","gravatar_id":"","url":"https://api.github.com/users/8398a7","html_url":"https://github.com/8398a7","followers_url":"https://api.github.com/users/8398a7/followers","following_url":"https://api.github.com/users/8398a7/following{/other_user}","gists_url":"https://api.github.com/users/8398a7/gists{/gist_id}","starred_url":"https://api.github.com/users/8398a7/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/8398a7/subscriptions","organizations_url":"https://api.github.com/users/8398a7/orgs","repos_url":"https://api.github.com/users/8398a7/repos","events_url":"https://api.github.com/users/8398a7/events{/privacy}","received_events_url":"https://api.github.com/users/8398a7/received_events","type":"User","site_admin":false},"created_at":"2015-07-06T13:17:06Z","updated_at":"2015-07-06T13:17:06Z","body":"存在しないユーザのページを閲覧された場合の対処"}}