{"action":"opened","issue":{"url":"https://api.github.com/repos/miguelespada/diinner/issues/67","labels_url":"https://api.github.com/repos/miguelespada/diinner/issues/67/labels{/name}","comments_url":"https://api.github.com/repos/miguelespada/diinner/issues/67/comments","events_url":"https://api.github.com/repos/miguelespada/diinner/issues/67/events","html_url":"https://github.com/miguelespada/diinner/issues/67","id":130149569,"number":67,"title":"NoMethodError: undefined method `each' for nil:NilClass","user":{"login":"miguelespada","id":2543988,"avatar_url":"https://avatars.githubusercontent.com/u/2543988?v=3","gravatar_id":"","url":"https://api.github.com/users/miguelespada","html_url":"https://github.com/miguelespada","followers_url":"https://api.github.com/users/miguelespada/followers","following_url":"https://api.github.com/users/miguelespada/following{/other_user}","gists_url":"https://api.github.com/users/miguelespada/gists{/gist_id}","starred_url":"https://api.github.com/users/miguelespada/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/miguelespada/subscriptions","organizations_url":"https://api.github.com/users/miguelespada/orgs","repos_url":"https://api.github.com/users/miguelespada/repos","events_url":"https://api.github.com/users/miguelespada/events{/privacy}","received_events_url":"https://api.github.com/users/miguelespada/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/miguelespada/diinner/labels/airbrake","name":"airbrake","color":"ededed"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-01-31T16:39:14Z","updated_at":"2016-01-31T16:39:14Z","closed_at":null,"body":"Check full details on Airbrake: [#1610229799599266296](https://herokuapp35743745herokucom.airbrake.io/projects/116173/groups/1610229799599266296)\n\nBacktrace:\n```\n[PROJECT_ROOT]/vendor/bundle/ruby/2.0.0/gems/mongo-2.1.2/lib/mongo/cluster.rb:114:in initialize\n[PROJECT_ROOT]/vendor/bundle/ruby/2.0.0/gems/mongo-2.1.2/lib/mongo/client.rb:335:in new\n[PROJECT_ROOT]/vendor/bundle/ruby/2.0.0/gems/mongo-2.1.2/lib/mongo/client.rb:335:in create_from_addresses\n[PROJECT_ROOT]/vendor/bundle/ruby/2.0.0/gems/mongo-2.1.2/lib/mongo/client.rb:200:in initialize\n[PROJECT_ROOT]/vendor/bundle/ruby/2.0.0/gems/mongoid-5.0.0/lib/mongoid/clients/factory.rb:64:in new\n[PROJECT_ROOT]/vendor/bundle/ruby/2.0.0/gems/mongoid-5.0.0/lib/mongoid/clients/factory.rb:64:in create_client\n[PROJECT_ROOT]/vendor/bundle/ruby/2.0.0/gems/mongoid-5.0.0/lib/mongoid/clients/factory.rb:27:in create\n[PROJECT_ROOT]/vendor/bundle/ruby/2.0.0/gems/mongoid-5.0.0/lib/mongoid/clients.rb:67:in with_name\n[PROJECT_ROOT]/vendor/bundle/ruby/2.0.0/gems/mongoid-5.0.0/lib/mongoid/clients.rb:119:in mongo_client\n[PROJECT_ROOT]/vendor/bundle/ruby/2.0.0/gems/mongoid-5.0.0/lib/mongoid/clients.rb:137:in collection\n[PROJECT_ROOT]/vendor/bundle/ruby/2.0.0/gems/mongoid-5.0.0/lib/mongoid/clients/options.rb:177:in method_missing\n[PROJECT_ROOT]/vendor/bundle/ruby/2.0.0/gems/mongoid-5.0.0/lib/mongoid/contextual/mongo.rb:313:in initialize\n[PROJECT_ROOT]/vendor/bundle/ruby/2.0.0/gems/mongoid-5.0.0/lib/mongoid/contextual.rb:53:in new\n[PROJECT_ROOT]/vendor/bundle/ruby/2.0.0/gems/mongoid-5.0.0/lib/mongoid/contextual.rb:53:in create_context\n[PROJECT_ROOT]/vendor/bundle/ruby/2.0.0/gems/mongoid-5.0.0/lib/mongoid/contextual.rb:35:in context\n[PROJECT_ROOT]/vendor/bundle/ruby/2.0.0/gems/mongoid-5.0.0/lib/mongoid/contextual.rb:20:in first\n[PROJECT_ROOT]/vendor/bundle/ruby/2.0.0/gems/mongoid-5.0.0/lib/mongoid/findable.rb:147:in first\n[PROJECT_ROOT]/app/models/home_item.rb:14:in get_first\n[PROJECT_ROOT]/app/views/application/index.slim:1:in _app_views_application_index_slim__3436314627701386616_70267389916380\n[PROJECT_ROOT]/vendor/bundle/ruby/2.0.0/gems/actionview-4.1.9/lib/action_view/template.rb:145:in block in render\n[PROJECT_ROOT]/vendor/bundle/ruby/2.0.0/gems/activesupport-4.1.9/lib/active_support/notifications.rb:161:in instrument\n[PROJECT_ROOT]/vendor/bundle/ruby/2.0.0/gems/actionview-4.1.9/lib/action_view/template.rb:339:in instrument\n[PROJECT_ROOT]/vendor/bundle/ruby/2.0.0/gems/actionview-4.1.9/lib/action_view/template.rb:143:in render\n[PROJECT_ROOT]/vendor/bundle/ruby/2.0.0/gems/actionview-4.1.9/lib/action_view/renderer/template_renderer.rb:55:in block (2 levels) in render_template\n[PROJECT_ROOT]/vendor/bundle/ruby/2.0.0/gems/actionview-4.1.9/lib/action_view/renderer/abstract_renderer.rb:38:in block in instrument\n[PROJECT_ROOT]/vendor/bundle/ruby/2.0.0/gems/activesupport-4.1.9/lib/active_support/notifications.rb:159:in block in instrument\n[PROJECT_ROOT]/vendor/bundle/ruby/2.0.0/gems/activesupport-4.1.9/lib/active_support/notifications/instrumenter.rb:20:in instrument\n[PROJECT_ROOT]/vendor/bundle/ruby/2.0.0/gems/activesupport-4.1.9/lib/active_support/notifications.rb:159:in instrument\n[PROJECT_ROOT]/vendor/bundle/ruby/2.0.0/gems/actionview-4.1.9/lib/action_view/renderer/abstract_renderer.rb:38:in instrument\n[PROJECT_ROOT]/vendor/bundle/ruby/2.0.0/gems/actionview-4.1.9/lib/action_view/renderer/template_renderer.rb:54:in block in render_template\n[PROJECT_ROOT]/vendor/bundle/ruby/2.0.0/gems/actionview-4.1.9/lib/action_view/renderer/template_renderer.rb:62:in render_with_layout\n[PROJECT_ROOT]/vendor/bundle/ruby/2.0.0/gems/actionview-4.1.9/lib/action_view/renderer/template_renderer.rb:53:in render_template\n[PROJECT_ROOT]/vendor/bundle/ruby/2.0.0/gems/actionview-4.1.9/lib/action_view/renderer/template_renderer.rb:17:in render\n[PROJECT_ROOT]/vendor/bundle/ruby/2.0.0/gems/actionview-4.1.9/lib/action_view/renderer/renderer.rb:42:in render_template\n[PROJECT_ROOT]/vendor/bundle/ruby/2.0.0/gems/actionview-4.1.9/lib/action_view/renderer/renderer.rb:23:in render\n[PROJECT_ROOT]/vendor/bundle/ruby/2.0.0/gems/actionview-4.1.9/lib/action_view/rendering.rb:99:in _render_template\n[PROJECT_ROOT]/vendor/bundle/ruby/2.0.0/gems/actionpack-4.1.9/lib/action_controller/metal/streaming.rb:217:in _render_template\n[PROJECT_ROOT]/vendor/bundle/ruby/2.0.0/gems/actionview-4.1.9/lib/action_view/rendering.rb:82:in render_to_body\n[PROJECT_ROOT]/vendor/bundle/ruby/2.0.0/gems/actionpack-4.1.9/lib/action_controller/metal/rendering.rb:32:in render_to_body\n[PROJECT_ROOT]/vendor/bundle/ruby/2.0.0/gems/actionpack-4.1.9/lib/action_controller/metal/renderers.rb:32:in render_to_body\n[PROJECT_ROOT]/vendor/bundle/ruby/2.0.0/gems/actionpack-4.1.9/lib/abstract_controller/rendering.rb:25:in render\n[PROJECT_ROOT]/vendor/bundle/ruby/2.0.0/gems/actionpack-4.1.9/lib/action_controller/metal/rendering.rb:16:in render\n[PROJECT_ROOT]/vendor/bundle/ruby/2.0.0/gems/actionpack-4.1.9/lib/action_controller/metal/instrumentation.rb:41:in block (2 levels) in render\n[PROJECT_ROOT]/vendor/bundle/ruby/2.0.0/gems/activesupport-4.1.9/lib/active_support/core_ext/benchmark.rb:12:in block in ms\n[PROJECT_ROOT]/vendor/ruby-2.0.0/lib/ruby/2.0.0/benchmark.rb:296:in realtime\n[PROJECT_ROOT]/vendor/bundle/ruby/2.0.0/gems/activesupport-4.1.9/lib/active_support/core_ext/benchmark.rb:12:in ms\n[PROJECT_ROOT]/vendor/bundle/ruby/2.0.0/gems/actionpack-4.1.9/lib/action_controller/metal/instrumentation.rb:41:in block in render\n[PROJECT_ROOT]/vendor/bundle/ruby/2.0.0/gems/actionpack-4.1.9/lib/action_controller/metal/instrumentation.rb:84:in cleanup_view_runtime\n[PROJECT_ROOT]/vendor/bundle/ruby/2.0.0/gems/actionpack-4.1.9/lib/action_controller/metal/instrumentation.rb:40:in render\n[PROJECT_ROOT]/vendor/bundle/ruby/2.0.0/gems/actionpack-4.1.9/lib/action_controller/metal/implicit_render.rb:10:in default_render\n[PROJECT_ROOT]/vendor/bundle/ruby/2.0.0/gems/actionpack-4.1.9/lib/action_controller/metal/implicit_render.rb:5:in send_action\n[PROJECT_ROOT]/vendor/bundle/ruby/2.0.0/gems/actionpack-4.1.9/lib/abstract_controller/base.rb:189:in process_action\n[PROJECT_ROOT]/vendor/bundle/ruby/2.0.0/gems/actionpack-4.1.9/lib/action_controller/metal/rendering.rb:10:in process_action\n[PROJECT_ROOT]/vendor/bundle/ruby/2.0.0/gems/actionpack-4.1.9/lib/abstract_controller/callbacks.rb:20:in block in process_action\n[PROJECT_ROOT]/vendor/bundle/ruby/2.0.0/gems/activesupport-4.1.9/lib/active_support/callbacks.rb:113:in call\n[PROJECT_ROOT]/vendor/bundle/ruby/2.0.0/gems/activesupport-4.1.9/lib/active_support/callbacks.rb:113:in call\n[PROJECT_ROOT]/vendor/bundle/ruby/2.0.0/gems/activesupport-4.1.9/lib/active_support/callbacks.rb:229:in block in halting\n[PROJECT_ROOT]/vendor/bundle/ruby/2.0.0/gems/activesupport-4.1.9/lib/active_support/callbacks.rb:166:in call\n[PROJECT_ROOT]/vendor/bundle/ruby/2.0.0/gems/activesupport-4.1.9/lib/active_support/callbacks.rb:166:in block in halting\n[PROJECT_ROOT]/vendor/bundle/ruby/2.0.0/gems/activesupport-4.1.9/lib/active_support/callbacks.rb:86:in call\n[PROJECT_ROOT]/vendor/bundle/ruby/2.0.0/gems/activesupport-4.1.9/lib/active_support/callbacks.rb:86:in run_callbacks\n[PROJECT_ROOT]/vendor/bundle/ruby/2.0.0/gems/actionpack-4.1.9/lib/abstract_controller/callbacks.rb:19:in process_action\n[PROJECT_ROOT]/vendor/bundle/ruby/2.0.0/gems/actionpack-4.1.9/lib/action_controller/metal/rescue.rb:29:in process_action\n[PROJECT_ROOT]/vendor/bundle/ruby/2.0.0/gems/actionpack-4.1.9/lib/action_controller/metal/instrumentation.rb:31:in block in process_action\n[PROJECT_ROOT]/vendor/bundle/ruby/2.0.0/gems/activesupport-4.1.9/lib/active_support/notifications.rb:159:in block in instrument\n[PROJECT_ROOT]/vendor/bundle/ruby/2.0.0/gems/activesupport-4.1.9/lib/active_support/notifications/instrumenter.rb:20:in instrument\n[PROJECT_ROOT]/vendor/bundle/ruby/2.0.0/gems/activesupport-4.1.9/lib/active_support/notifications.rb:159:in instrument\n[PROJECT_ROOT]/vendor/bundle/ruby/2.0.0/gems/actionpack-4.1.9/lib/action_controller/metal/instrumentation.rb:30:in process_action\n[PROJECT_ROOT]/vendor/bundle/ruby/2.0.0/gems/actionpack-4.1.9/lib/action_controller/metal/params_wrapper.rb:250:in process_action\n[PROJECT_ROOT]/vendor/bundle/ruby/2.0.0/gems/actionpack-4.1.9/lib/abstract_controller/base.rb:136:in process\n[PROJECT_ROOT]/vendor/bundle/ruby/2.0.0/gems/actionview-4.1.9/lib/action_view/rendering.rb:30:in process\n[PROJECT_ROOT]/vendor/bundle/ruby/2.0.0/gems/actionpack-4.1.9/lib/action_controller/metal.rb:196:in dispatch\n[PROJECT_ROOT]/vendor/bundle/ruby/2.0.0/gems/actionpack-4.1.9/lib/action_controller/metal/rack_delegation.rb:13:in dispatch\n[PROJECT_ROOT]/vendor/bundle/ruby/2.0.0/gems/actionpack-4.1.9/lib/action_controller/metal.rb:232:in block in action\n[PROJECT_ROOT]/vendor/bundle/ruby/2.0.0/gems/actionpack-4.1.9/lib/action_dispatch/routing/route_set.rb:82:in call\n[PROJECT_ROOT]/vendor/bundle/ruby/2.0.0/gems/actionpack-4.1.9/lib/action_dispatch/routing/route_set.rb:82:in dispatch\n[PROJECT_ROOT]/vendor/bundle/ruby/2.0.0/gems/actionpack-4.1.9/lib/action_dispatch/routing/route_set.rb:50:in call\n[PROJECT_ROOT]/vendor/bundle/ruby/2.0.0/gems/actionpack-4.1.9/lib/action_dispatch/journey/router.rb:73:in block in call\n[PROJECT_ROOT]/vendor/bundle/ruby/2.0.0/gems/actionpack-4.1.9/lib/action_dispatch/journey/router.rb:59:in each\n[PROJECT_ROOT]/vendor/bundle/ruby/2.0.0/gems/actionpack-4.1.9/lib/action_dispatch/journey/router.rb:59:in call\n[PROJECT_ROOT]/vendor/bundle/ruby/2.0.0/gems/actionpack-4.1.9/lib/action_dispatch/routing/route_set.rb:685:in call\n[PROJECT_ROOT]/vendor/bundle/ruby/2.0.0/gems/omniauth-1.2.2/lib/omniauth/strategy.rb:186:in call!\n[PROJECT_ROOT]/vendor/bundle/ruby/2.0.0/gems/omniauth-1.2.2/lib/omniauth/strategy.rb:164:in call\n[PROJECT_ROOT]/vendor/bundle/ruby/2.0.0/gems/omniauth-1.2.2/lib/omniauth/builder.rb:59:in call\n[PROJECT_ROOT]/vendor/bundle/ruby/2.0.0/gems/warden-1.2.3/lib/warden/manager.rb:35:in block in call\n[PROJECT_ROOT]/vendor/bundle/ruby/2.0.0/gems/warden-1.2.3/lib/warden/manager.rb:34:in catch\n[PROJECT_ROOT]/vendor/bundle/ruby/2.0.0/gems/warden-1.2.3/lib/warden/manager.rb:34:in call\n[PROJECT_ROOT]/vendor/bundle/ruby/2.0.0/gems/rack-1.5.2/lib/rack/etag.rb:23:in call\n[PROJECT_ROOT]/vendor/bundle/ruby/2.0.0/gems/rack-1.5.2/lib/rack/conditionalget.rb:25:in call\n[PROJECT_ROOT]/vendor/bundle/ruby/2.0.0/gems/rack-1.5.2/lib/rack/head.rb:11:in call\n[PROJECT_ROOT]/vendor/bundle/ruby/2.0.0/gems/actionpack-4.1.9/lib/action_dispatch/middleware/params_parser.rb:27:in call\n[PROJECT_ROOT]/vendor/bundle/ruby/2.0.0/gems/actionpack-4.1.9/lib/action_dispatch/middleware/flash.rb:254:in call\n[PROJECT_ROOT]/vendor/bundle/ruby/2.0.0/gems/rack-1.5.2/lib/rack/session/abstract/id.rb:225:in context\n[PROJECT_ROOT]/vendor/bundle/ruby/2.0.0/gems/rack-1.5.2/lib/rack/session/abstract/id.rb:220:in call\n[PROJECT_ROOT]/vendor/bundle/ruby/2.0.0/gems/actionpack-4.1.9/lib/action_dispatch/middleware/cookies.rb:562:in call\n[PROJECT_ROOT]/vendor/bundle/ruby/2.0.0/gems/actionpack-4.1.9/lib/action_dispatch/middleware/callbacks.rb:29:in block in call\n[PROJECT_ROOT]/vendor/bundle/ruby/2.0.0/gems/activesupport-4.1.9/lib/active_support/callbacks.rb:82:in run_callbacks\n[PROJECT_ROOT]/vendor/bundle/ruby/2.0.0/gems/actionpack-4.1.9/lib/action_dispatch/middleware/callbacks.rb:27:in call\n[PROJECT_ROOT]/vendor/bundle/ruby/2.0.0/gems/actionpack-4.1.9/lib/action_dispatch/middleware/remote_ip.rb:76:in call\n[PROJECT_ROOT]/vendor/bundle/ruby/2.0.0/gems/actionpack-4.1.9/lib/action_dispatch/middleware/debug_exceptions.rb:17:in call\n[PROJECT_ROOT]/vendor/bundle/ruby/2.0.0/gems/actionpack-4.1.9/lib/action_dispatch/middleware/show_exceptions.rb:30:in call\n[PROJECT_ROOT]/vendor/bundle/ruby/2.0.0/gems/railties-4.1.9/lib/rails/rack/logger.rb:38:in call_app\n[PROJECT_ROOT]/vendor/bundle/ruby/2.0.0/gems/railties-4.1.9/lib/rails/rack/logger.rb:20:in block in call\n[PROJECT_ROOT]/vendor/bundle/ruby/2.0.0/gems/activesupport-4.1.9/lib/active_support/tagged_logging.rb:68:in block in tagged\n[PROJECT_ROOT]/vendor/bundle/ruby/2.0.0/gems/activesupport-4.1.9/lib/active_support/tagged_logging.rb:26:in tagged\n[PROJECT_ROOT]/vendor/bundle/ruby/2.0.0/gems/activesupport-4.1.9/lib/active_support/tagged_logging.rb:68:in tagged\n[PROJECT_ROOT]/vendor/bundle/ruby/2.0.0/gems/railties-4.1.9/lib/rails/rack/logger.rb:20:in call\n[PROJECT_ROOT]/vendor/bundle/ruby/2.0.0/gems/actionpack-4.1.9/lib/action_dispatch/middleware/request_id.rb:21:in call\n[PROJECT_ROOT]/vendor/bundle/ruby/2.0.0/gems/rack-1.5.2/lib/rack/methodoverride.rb:21:in call\n[PROJECT_ROOT]/vendor/bundle/ruby/2.0.0/gems/rack-1.5.2/lib/rack/runtime.rb:17:in call\n[PROJECT_ROOT]/vendor/bundle/ruby/2.0.0/gems/activesupport-4.1.9/lib/active_support/cache/strategy/local_cache_middleware.rb:26:in call\n[PROJECT_ROOT]/vendor/bundle/ruby/2.0.0/gems/actionpack-4.1.9/lib/action_dispatch/middleware/static.rb:84:in call\n[PROJECT_ROOT]/vendor/bundle/ruby/2.0.0/gems/rack-1.5.2/lib/rack/sendfile.rb:112:in call\n[PROJECT_ROOT]/vendor/bundle/ruby/2.0.0/gems/rack-cors-0.4.0/lib/rack/cors.rb:80:in call\n[PROJECT_ROOT]/vendor/bundle/ruby/2.0.0/gems/railties-4.1.9/lib/rails/engine.rb:514:in call\n[PROJECT_ROOT]/vendor/bundle/ruby/2.0.0/gems/railties-4.1.9/lib/rails/application.rb:144:in call\n[PROJECT_ROOT]/vendor/bundle/ruby/2.0.0/gems/rack-1.5.2/lib/rack/content_length.rb:14:in call\n[PROJECT_ROOT]/vendor/bundle/ruby/2.0.0/gems/thin-1.6.3/lib/thin/connection.rb:86:in block in pre_process\n[PROJECT_ROOT]/vendor/bundle/ruby/2.0.0/gems/thin-1.6.3/lib/thin/connection.rb:84:in catch\n[PROJECT_ROOT]/vendor/bundle/ruby/2.0.0/gems/thin-1.6.3/lib/thin/connection.rb:84:in pre_process\n[PROJECT_ROOT]/vendor/bundle/ruby/2.0.0/gems/thin-1.6.3/lib/thin/connection.rb:53:in process\n[PROJECT_ROOT]/vendor/bundle/ruby/2.0.0/gems/thin-1.6.3/lib/thin/connection.rb:39:in receive_data\n[PROJECT_ROOT]/vendor/bundle/ruby/2.0.0/gems/eventmachine-1.0.7/lib/eventmachine.rb:187:in run_machine\n[PROJECT_ROOT]/vendor/bundle/ruby/2.0.0/gems/eventmachine-1.0.7/lib/eventmachine.rb:187:in run\n[PROJECT_ROOT]/vendor/bundle/ruby/2.0.0/gems/thin-1.6.3/lib/thin/backends/base.rb:73:in start\n[PROJECT_ROOT]/vendor/bundle/ruby/2.0.0/gems/thin-1.6.3/lib/thin/server.rb:162:in start\n[PROJECT_ROOT]/vendor/bundle/ruby/2.0.0/gems/rack-1.5.2/lib/rack/handler/thin.rb:16:in run\n[PROJECT_ROOT]/vendor/bundle/ruby/2.0.0/gems/rack-1.5.2/lib/rack/server.rb:264:in start\n[PROJECT_ROOT]/vendor/bundle/ruby/2.0.0/gems/railties-4.1.9/lib/rails/commands/server.rb:69:in start\n[PROJECT_ROOT]/vendor/bundle/ruby/2.0.0/gems/railties-4.1.9/lib/rails/commands/commands_tasks.rb:81:in block in server\n[PROJECT_ROOT]/vendor/bundle/ruby/2.0.0/gems/railties-4.1.9/lib/rails/commands/commands_tasks.rb:76:in tap\n[PROJECT_ROOT]/vendor/bundle/ruby/2.0.0/gems/railties-4.1.9/lib/rails/commands/commands_tasks.rb:76:in server\n[PROJECT_ROOT]/vendor/bundle/ruby/2.0.0/gems/railties-4.1.9/lib/rails/commands/commands_tasks.rb:40:in run_command!\n[PROJECT_ROOT]/vendor/bundle/ruby/2.0.0/gems/railties-4.1.9/lib/rails/commands.rb:17:in <top (required)>\nbin/rails:8:in require\nbin/rails:8:in <main>\n```"}}