carlyle/local-lens — Issue #1: [production][home#index] NoMethodError: undefined method `include?' for nil:NilClass
Author: carlyle
Created: 2011-10-18 21:12:53+00:00
State: open

[See this exception on Errbit](http://local-lens-errbit.herokuapp.com:80/apps/15452e2d6e1711ed8d3d0bcb5a7d7ade/errs/4e9ac4fc83e4fb0001000002 "See this exception on Errbit")

# NoMethodError: undefined method `include?' for nil:NilClass #
## Summary ##

### URL ###
[http://www.local-lens.com/](http://www.local-lens.com/)"

### Where ###
home#index
### Occured ###
Oct 16 11:50am
### Similar ###
1
## Params ##
```
{
"action" => "index",
"controller" => "home"
}
```
## Session ##
```
{
"_csrf_token" => "ABgqyOSrFpmTf/0KwVfKC1uyp0YVVxtybhQWbsl8EIo=",
"session_id" => "0e473ab103bd101dfbffdca6bdf0703b"
}
```
## Backtrace ##
```
3: [PROJECT_ROOT]/helpers[PROJECT_ROOT]lication_helper.rb -> **is_iPhone?**
31: [PROJECT_ROOT]/views/layouts[PROJECT_ROOT]lication.html.erb -> **_app_views_layouts_application_html_erb___2030352790480571744_33590640**
144: /vendor/bundle/ruby/1.9.1/gems/actionpack-3.1.0/lib/action_view/template.rb -> **block in render**
55: /vendor/bundle/ruby/1.9.1/gems/activesupport-3.1.0/lib/active_support/notifications.rb -> **instrument**
142: /vendor/bundle/ruby/1.9.1/gems/actionpack-3.1.0/lib/action_view/template.rb -> **render**
52: /vendor/bundle/ruby/1.9.1/gems/actionpack-3.1.0/lib/action_view/renderer/template_renderer.rb -> **render_with_layout**
38: /vendor/bundle/ruby/1.9.1/gems/actionpack-3.1.0/lib/action_view/renderer/template_renderer.rb -> **render_template**
12: /vendor/bundle/ruby/1.9.1/gems/actionpack-3.1.0/lib/action_view/renderer/template_renderer.rb -> **block in render**
22: /vendor/bundle/ruby/1.9.1/gems/actionpack-3.1.0/lib/action_view/renderer/abstract_renderer.rb -> **wrap_formats**
9: /vendor/bundle/ruby/1.9.1/gems/actionpack-3.1.0/lib/action_view/renderer/template_renderer.rb -> **render**
36: /vendor/bundle/ruby/1.9.1/gems/actionpack-3.1.0/lib/action_view/renderer/renderer.rb -> **render_template**
17: /vendor/bundle/ruby/1.9.1/gems/actionpack-3.1.0/lib/action_view/renderer/renderer.rb -> **render**
120: /vendor/bundle/ruby/1.9.1/gems/actionpack-3.1.0/lib/abstract_controller/rendering.rb -> **_render_template**
250: /vendor/bundle/ruby/1.9.1/gems/actionpack-3.1.0/lib/action_controller/metal/streaming.rb -> **_render_template**
114: /vendor/bundle/ruby/1.9.1/gems/actionpack-3.1.0/lib/abstract_controller/rendering.rb -> **render_to_body**
30: /vendor/bundle/ruby/1.9.1/gems/actionpack-3.1.0/lib/action_controller/metal/renderers.rb -> **render_to_body**
43: /vendor/bundle/ruby/1.9.1/gems/actionpack-3.1.0/lib/action_controller/metal/compatibility.rb -> **render_to_body**
99: /vendor/bundle/ruby/1.9.1/gems/actionpack-3.1.0/lib/abstract_controller/rendering.rb -> **render**
16: /vendor/bundle/ruby/1.9.1/gems/actionpack-3.1.0/lib/action_controller/metal/rendering.rb -> **render**
40: /vendor/bundle/ruby/1.9.1/gems/actionpack-3.1.0/lib/action_controller/metal/instrumentation.rb -> **block (2 levels) in render**
5: /vendor/bundle/ruby/1.9.1/gems/activesupport-3.1.0/lib/active_support/core_ext/benchmark.rb -> **block in ms**
309: /usr/local/lib/ruby/1.9.1/benchmark.rb -> **realtime**
5: /vendor/bundle/ruby/1.9.1/gems/activesupport-3.1.0/lib/active_support/core_ext/benchmark.rb -> **ms**
40: /vendor/bundle/ruby/1.9.1/gems/actionpack-3.1.0/lib/action_controller/metal/instrumentation.rb -> **block in render**
78: /vendor/bundle/ruby/1.9.1/gems/actionpack-3.1.0/lib/action_controller/metal/instrumentation.rb -> **cleanup_view_runtime**
24: /vendor/bundle/ruby/1.9.1/gems/activerecord-3.1.0/lib/active_record/railties/controller_runtime.rb -> **cleanup_view_runtime**
39: /vendor/bundle/ruby/1.9.1/gems/actionpack-3.1.0/lib/action_controller/metal/instrumentation.rb -> **render**
10: /vendor/bundle/ruby/1.9.1/gems/actionpack-3.1.0/lib/action_controller/metal/implicit_render.rb -> **default_render**
5: /vendor/bundle/ruby/1.9.1/gems/actionpack-3.1.0/lib/action_controller/metal/implicit_render.rb -> **send_action**
167: /vendor/bundle/ruby/1.9.1/gems/actionpack-3.1.0/lib/abstract_controller/base.rb -> **process_action**
10: /vendor/bundle/ruby/1.9.1/gems/actionpack-3.1.0/lib/action_controller/metal/rendering.rb -> **process_action**
18: /vendor/bundle/ruby/1.9.1/gems/actionpack-3.1.0/lib/abstract_controller/callbacks.rb -> **block in process_action**
425: /vendor/bundle/ruby/1.9.1/gems/activesupport-3.1.0/lib/active_support/callbacks.rb -> **_run__590603663690138967__process_action__2149145110159719004__callbacks**
386: /vendor/bundle/ruby/1.9.1/gems/activesupport-3.1.0/lib/active_support/callbacks.rb -> **_run_process_action_callbacks**
81: /vendor/bundle/ruby/1.9.1/gems/activesupport-3.1.0/lib/active_support/callbacks.rb -> **run_callbacks**
17: /vendor/bundle/ruby/1.9.1/gems/actionpack-3.1.0/lib/abstract_controller/callbacks.rb -> **process_action**
17: /vendor/bundle/ruby/1.9.1/gems/actionpack-3.1.0/lib/action_controller/metal/rescue.rb -> **process_action**
30: /vendor/bundle/ruby/1.9.1/gems/actionpack-3.1.0/lib/action_controller/metal/instrumentation.rb -> **block in process_action**
53: /vendor/bundle/ruby/1.9.1/gems/activesupport-3.1.0/lib/active_support/notifications.rb -> **block in instrument**
21: /vendor/bundle/ruby/1.9.1/gems/activesupport-3.1.0/lib/active_support/notifications/instrumenter.rb -> **instrument**
53: /vendor/bundle/ruby/1.9.1/gems/activesupport-3.1.0/lib/active_support/notifications.rb -> **instrument**
29: /vendor/bundle/ruby/1.9.1/gems/actionpack-3.1.0/lib/action_controller/metal/instrumentation.rb -> **process_action**
201: /vendor/bundle/ruby/1.9.1/gems/actionpack-3.1.0/lib/action_controller/metal/params_wrapper.rb -> **process_action**
18: /vendor/bundle/ruby/1.9.1/gems/activerecord-3.1.0/lib/active_record/railties/controller_runtime.rb -> **process_action**
121: /vendor/bundle/ruby/1.9.1/gems/actionpack-3.1.0/lib/abstract_controller/base.rb -> **process**
45: /vendor/bundle/ruby/1.9.1/gems/actionpack-3.1.0/lib/abstract_controller/rendering.rb -> **process**
193: /vendor/bundle/ruby/1.9.1/gems/actionpack-3.1.0/lib/action_controller/metal.rb -> **dispatch**
14: /vendor/bundle/ruby/1.9.1/gems/actionpack-3.1.0/lib/action_controller/metal/rack_delegation.rb -> **dispatch**
236: /vendor/bundle/ruby/1.9.1/gems/actionpack-3.1.0/lib/action_controller/metal.rb -> **block in action**
65: /vendor/bundle/ruby/1.9.1/gems/actionpack-3.1.0/lib/action_dispatch/routing/route_set.rb -> **call**
65: /vendor/bundle/ruby/1.9.1/gems/actionpack-3.1.0/lib/action_dispatch/routing/route_set.rb -> **dispatch**
29: /vendor/bundle/ruby/1.9.1/gems/actionpack-3.1.0/lib/action_dispatch/routing/route_set.rb -> **call**
152: /vendor/bundle/ruby/1.9.1/gems/rack-mount-0.8.3/lib/rack/mount/route_set.rb -> **block in call**
96: /vendor/bundle/ruby/1.9.1/gems/rack-mount-0.8.3/lib/rack/mount/code_generation.rb -> **block in recognize**
75: /vendor/bundle/ruby/1.9.1/gems/rack-mount-0.8.3/lib/rack/mount/code_generation.rb -> **optimized_each**
95: /vendor/bundle/ruby/1.9.1/gems/rack-mount-0.8.3/lib/rack/mount/code_generation.rb -> **recognize**
141: /vendor/bundle/ruby/1.9.1/gems/rack-mount-0.8.3/lib/rack/mount/route_set.rb -> **call**
531: /vendor/bundle/ruby/1.9.1/gems/actionpack-3.1.0/lib/action_dispatch/routing/route_set.rb -> **call**
35: /vendor/bundle/ruby/1.9.1/gems/warden-1.0.5/lib/warden/manager.rb -> **block in call**
34: /vendor/bundle/ruby/1.9.1/gems/warden-1.0.5/lib/warden/manager.rb -> **catch**
34: /vendor/bundle/ruby/1.9.1/gems/warden-1.0.5/lib/warden/manager.rb -> **call**
17: /vendor/bundle/ruby/1.9.1/gems/actionpack-3.1.0/lib/action_dispatch/middleware/best_standards_support.rb -> **call**
23: /vendor/bundle/ruby/1.9.1/gems/rack-1.3.2/lib/rack/etag.rb -> **call**
25: /vendor/bundle/ruby/1.9.1/gems/rack-1.3.2/lib/rack/conditionalget.rb -> **call**
14: /vendor/bundle/ruby/1.9.1/gems/actionpack-3.1.0/lib/action_dispatch/middleware/head.rb -> **call**
21: /vendor/bundle/ruby/1.9.1/gems/actionpack-3.1.0/lib/action_dispatch/middleware/params_parser.rb -> **call**
243: /vendor/bundle/ruby/1.9.1/gems/actionpack-3.1.0/lib/action_dispatch/middleware/flash.rb -> **call**
195: /vendor/bundle/ruby/1.9.1/gems/rack-1.3.2/lib/rack/session/abstract/id.rb -> **context**
190: /vendor/bundle/ruby/1.9.1/gems/rack-1.3.2/lib/rack/session/abstract/id.rb -> **call**
326: /vendor/bundle/ruby/1.9.1/gems/actionpack-3.1.0/lib/action_dispatch/middleware/cookies.rb -> **call**
62: /vendor/bundle/ruby/1.9.1/gems/activerecord-3.1.0/lib/active_record/query_cache.rb -> **call**
477: /vendor/bundle/ruby/1.9.1/gems/activerecord-3.1.0/lib/active_record/connection_adapters/abstract/connection_pool.rb -> **call**
29: /vendor/bundle/ruby/1.9.1/gems/actionpack-3.1.0/lib/action_dispatch/middleware/callbacks.rb -> **block in call**
392: /vendor/bundle/ruby/1.9.1/gems/activesupport-3.1.0/lib/active_support/callbacks.rb -> **_run_call_callbacks**
81: /vendor/bundle/ruby/1.9.1/gems/activesupport-3.1.0/lib/active_support/callbacks.rb -> **run_callbacks**
28: /vendor/bundle/ruby/1.9.1/gems/actionpack-3.1.0/lib/action_dispatch/middleware/callbacks.rb -> **call**
101: /vendor/bundle/ruby/1.9.1/gems/rack-1.3.2/lib/rack/sendfile.rb -> **call**
48: /vendor/bundle/ruby/1.9.1/gems/actionpack-3.1.0/lib/action_dispatch/middleware/remote_ip.rb -> **call**
47: /vendor/bundle/ruby/1.9.1/gems/actionpack-3.1.0/lib/action_dispatch/middleware/show_exceptions.rb -> **call**
13: /vendor/bundle/ruby/1.9.1/gems/railties-3.1.0/lib/rails/rack/logger.rb -> **call**
24: /vendor/bundle/ruby/1.9.1/gems/rack-1.3.2/lib/rack/methodoverride.rb -> **call**
17: /vendor/bundle/ruby/1.9.1/gems/rack-1.3.2/lib/rack/runtime.rb -> **call**
72: /vendor/bundle/ruby/1.9.1/gems/activesupport-3.1.0/lib/active_support/cache/strategy/local_cache.rb -> **call**
15: /vendor/bundle/ruby/1.9.1/gems/rack-1.3.2/lib/rack/lock.rb -> **call**
53: /vendor/bundle/ruby/1.9.1/gems/actionpack-3.1.0/lib/action_dispatch/middleware/static.rb -> **call**
132: /vendor/bundle/ruby/1.9.1/gems/rack-cache-1.0.3/lib/rack/cache/context.rb -> **forward**
243: /vendor/bundle/ruby/1.9.1/gems/rack-cache-1.0.3/lib/rack/cache/context.rb -> **fetch**
181: /vendor/bundle/ruby/1.9.1/gems/rack-cache-1.0.3/lib/rack/cache/context.rb -> **lookup**
65: /vendor/bundle/ruby/1.9.1/gems/rack-cache-1.0.3/lib/rack/cache/context.rb -> **call!**
50: /vendor/bundle/ruby/1.9.1/gems/rack-cache-1.0.3/lib/rack/cache/context.rb -> **call**
455: /vendor/bundle/ruby/1.9.1/gems/railties-3.1.0/lib/rails/engine.rb -> **call**
16: /vendor/bundle/ruby/1.9.1/gems/railties-3.1.0/lib/rails/rack/content_length.rb -> **call**
14: /vendor/bundle/ruby/1.9.1/gems/railties-3.1.0/lib/rails/rack/log_tailer.rb -> **call**
59: /vendor/bundle/ruby/1.9.1/gems/rack-1.3.2/lib/rack/handler/webrick.rb -> **service**
111: /usr/local/lib/ruby/1.9.1/webrick/httpserver.rb -> **service**
70: /usr/local/lib/ruby/1.9.1/webrick/httpserver.rb -> **run**
183: /usr/local/lib/ruby/1.9.1/webrick/server.rb -> **block in start_thread**

```
## Environment ##

GATEWAY_INTERFACE:
CGI/1.1

PATH_INFO:
/

key:
action_dispatch.request.flash_hash

REMOTE_ADDR:
10.94.69.43

REMOTE_HOST:
ip-10-94-69-43.ec2.internal

REQUEST_METHOD:
GET

REQUEST_URI:
http://www.local-lens.com/

SERVER_NAME:
www.local-lens.com

SERVER_PORT:
80

SERVER_PROTOCOL:
HTTP/1.1

SERVER_SOFTWARE:
WEBrick/1.3.1 (Ruby/1.9.2/2011-02-18)

HTTP_X_FORWARDED_PROTO:
http

HTTP_X_FORWARDED_PORT:
80

HTTP_X_FORWARDED_FOR:
97.107.142.224

HTTP_HOST:
www.local-lens.com

HTTP_CONNECTION:
keep-alive

HTTP_X_HEROKU_QUEUE_WAIT_TIME:
2

HTTP_X_HEROKU_QUEUE_DEPTH:
0

HTTP_X_HEROKU_DYNOS_IN_USE:
1

HTTP_X_REQUEST_START:
1318765820021

rack_version:
["1", "1"]

rack_input:
#

rack_errors:
#

rack_multithread:
false

rack_multiprocess:
false

rack_run_once:
false

rack_url_scheme:
http

HTTP_VERSION:
HTTP/1.1

REQUEST_PATH:
/

action_dispatch_routes:
#

action_dispatch_parameter_filter:
["password"]

action_dispatch_secret_token:
27decb411966690aba17a9bee73e175d75628a38de39813aa0d82075844268077cdbc312361b229e382bbca2961a45d96e15be4889abd2fb9504606646ae21c2

action_dispatch_show_exceptions:
true

rack-cache_cache_key:
Rack::Cache::Key

rack-cache_verbose:
true

rack-cache_storage:
#

rack-cache_metastore:
rails:/

rack-cache_entitystore:
rails:/

rack-cache_default_ttl:
0

rack-cache_private_headers:
["Authorization", "Cookie"]

rack-cache_allow_reload:
false

rack-cache_allow_revalidate:
false

action_dispatch_remote_ip:
97.107.142.224

rack_session:
{"session_id"=>"0e473ab103bd101dfbffdca6bdf0703b", "_csrf_token"=>"ABgqyOSrFpmTf/0KwVfKC1uyp0YVVxtybhQWbsl8EIo="}

rack_session_options:
{"key"=>"expire_after", "path"=>"/", "secure"=>"false", "httponly"=>"true", "defer"=>"false", "renew"=>"false", "coder"=>"#", "id"=>"0e473ab103bd101dfbffdca6bdf0703b"}

action_dispatch_cookies:
#

action_dispatch_request_unsigned_session_cookie:
{"session_id"=>"0e473ab103bd101dfbffdca6bdf0703b"}

warden:
Warden::Proxy:34204220 @config={:default_scope=>:user, :scope_defaults=>{}, :default_strategies=>{:user=>[:rememberable, :database_authenticatable]}, :intercept_401=>false, :failure_app=>Devise::FailureApp}

action_dispatch_request_path_parameters:
{"controller"=>"home", "action"=>"index"}

action_controller_instance:
#

action_dispatch_request_parameters:
{"controller"=>"home", "action"=>"index"}

action_dispatch_request_formats:
["text/html"]