ShelbyTV / shelby_gt

Rails API services for Shelby GT
2 stars 0 forks source link

RollController#show line 22 NPE #65

Closed spinosa closed 12 years ago

spinosa commented 12 years ago

A NoMethodError occurred in roll#show:

undefined method viewable_by?' for nil:NilClass app/controllers/v1/roll_controller.rb:22:inblock in show' ------------------------------- Request:

app/controllers/v1/roll_controller.rb:22:in block in show' lib/stats/stats_manager.rb:35:intime' app/controllers/v1/roll_controller.rb:17:in show' actionpack (3.2.2) lib/action_controller/metal/implicit_render.rb:4:insend_action' actionpack (3.2.2) lib/abstract_controller/base.rb:167:in process_action' actionpack (3.2.2) lib/action_controller/metal/rendering.rb:10:inprocess_action' actionpack (3.2.2) lib/abstract_controller/callbacks.rb:18:in block in process_action' activesupport (3.2.2) lib/active_support/callbacks.rb:425:in_run4356747696921044534process_action3458909136388011966callbacks' activesupport (3.2.2) lib/active_support/callbacks.rb:405:in __run_callback' activesupport (3.2.2) lib/active_support/callbacks.rb:385:in_run_process_action_callbacks' activesupport (3.2.2) lib/active_support/callbacks.rb:81:in run_callbacks' actionpack (3.2.2) lib/abstract_controller/callbacks.rb:17:inprocess_action' actionpack (3.2.2) lib/action_controller/metal/rescue.rb:29:in process_action' actionpack (3.2.2) lib/action_controller/metal/instrumentation.rb:30:inblock in process_action' activesupport (3.2.2) lib/active_support/notifications.rb:123:in block in instrument' activesupport (3.2.2) lib/active_support/notifications/instrumenter.rb:20:ininstrument' activesupport (3.2.2) lib/active_support/notifications.rb:123:in instrument' actionpack (3.2.2) lib/action_controller/metal/instrumentation.rb:29:inprocess_action' actionpack (3.2.2) lib/action_controller/metal/params_wrapper.rb:205:in process_action' newrelic_rpm (3.3.4.1) lib/new_relic/agent/instrumentation/rails3/action_controller.rb:34:inblock in process_action' newrelic_rpm (3.3.4.1) lib/new_relic/agent/instrumentation/controller_instrumentation.rb:255:in block in perform_action_with_newrelic_trace' newrelic_rpm (3.3.4.1) lib/new_relic/agent/method_tracer.rb:242:intrace_execution_scoped' newrelic_rpm (3.3.4.1) lib/new_relic/agent/instrumentation/controller_instrumentation.rb:250:in perform_action_with_newrelic_trace' newrelic_rpm (3.3.4.1) lib/new_relic/agent/instrumentation/rails3/action_controller.rb:33:inprocess_action' actionpack (3.2.2) lib/abstract_controller/base.rb:121:in process' actionpack (3.2.2) lib/abstract_controller/rendering.rb:45:inprocess' actionpack (3.2.2) lib/action_controller/metal.rb:203:in dispatch' actionpack (3.2.2) lib/action_controller/metal/rack_delegation.rb:14:indispatch' actionpack (3.2.2) lib/action_controller/metal.rb:246:in block in action' actionpack (3.2.2) lib/action_dispatch/routing/route_set.rb:67:incall' actionpack (3.2.2) lib/action_dispatch/routing/route_set.rb:67:in dispatch' actionpack (3.2.2) lib/action_dispatch/routing/route_set.rb:30:incall' journey (1.0.3) lib/journey/router.rb:68:in block in call' journey (1.0.3) lib/journey/router.rb:56:ineach' journey (1.0.3) lib/journey/router.rb:56:in call' actionpack (3.2.2) lib/action_dispatch/routing/route_set.rb:594:incall' omniauth (1.0.3) lib/omniauth/strategy.rb:168:in call!' omniauth (1.0.3) lib/omniauth/strategy.rb:148:incall' omniauth (1.0.3) lib/omniauth/strategy.rb:168:in call!' omniauth (1.0.3) lib/omniauth/strategy.rb:148:incall' omniauth (1.0.3) lib/omniauth/strategy.rb:168:in call!' omniauth (1.0.3) lib/omniauth/strategy.rb:148:incall' omniauth (1.0.3) lib/omniauth/builder.rb:42:in call' exception_notification (2.5.2) lib/exception_notifier.rb:25:incall' newrelic_rpm (3.3.4.1) lib/new_relic/rack/browser_monitoring.rb:23:in call' /home/gt/.rvm/gems/ruby-1.9.3-p125/bundler/gems/mongomapper-f856b5d6c85b/lib/mongo_mapper/middleware/identity_map.rb:10:incall' sass (3.1.15) lib/sass/plugin/rack.rb:54:in call' rack-cors (0.2.4) lib/rack/cors.rb:51:incall' warden (1.1.1) lib/warden/manager.rb:35:in block in call' warden (1.1.1) lib/warden/manager.rb:34:incatch' warden (1.1.1) lib/warden/manager.rb:34:in call' actionpack (3.2.2) lib/action_dispatch/middleware/best_standards_support.rb:17:incall' rack (1.4.1) lib/rack/etag.rb:23:in call' rack (1.4.1) lib/rack/conditionalget.rb:25:incall' actionpack (3.2.2) lib/action_dispatch/middleware/head.rb:14:in call' actionpack (3.2.2) lib/action_dispatch/middleware/params_parser.rb:21:incall' actionpack (3.2.2) lib/action_dispatch/middleware/flash.rb:242:in call' rack (1.4.1) lib/rack/session/abstract/id.rb:205:incontext' rack (1.4.1) lib/rack/session/abstract/id.rb:200:in call' actionpack (3.2.2) lib/action_dispatch/middleware/cookies.rb:338:incall' actionpack (3.2.2) lib/action_dispatch/middleware/callbacks.rb:28:in block in call' activesupport (3.2.2) lib/active_support/callbacks.rb:405:in_run1482501248003686213call3649713428287851125callbacks' activesupport (3.2.2) lib/active_support/callbacks.rb:405:in __run_callback' activesupport (3.2.2) lib/active_support/callbacks.rb:385:in_run_call_callbacks' activesupport (3.2.2) lib/active_support/callbacks.rb:81:in run_callbacks' actionpack (3.2.2) lib/action_dispatch/middleware/callbacks.rb:27:incall' actionpack (3.2.2) lib/action_dispatch/middleware/remote_ip.rb:31:in call' actionpack (3.2.2) lib/action_dispatch/middleware/debug_exceptions.rb:16:incall' actionpack (3.2.2) lib/action_dispatch/middleware/show_exceptions.rb:56:in call' railties (3.2.2) lib/rails/rack/logger.rb:26:incall_app' railties (3.2.2) lib/rails/rack/logger.rb:16:in call' actionpack (3.2.2) lib/action_dispatch/middleware/request_id.rb:22:incall' rack (1.4.1) lib/rack/methodoverride.rb:21:in call' rack (1.4.1) lib/rack/runtime.rb:17:incall' activesupport (3.2.2) lib/active_support/cache/strategy/local_cache.rb:72:in call' rack (1.4.1) lib/rack/lock.rb:15:incall' rack-cache (1.2) lib/rack/cache/context.rb:136:in forward' rack-cache (1.2) lib/rack/cache/context.rb:245:infetch' rack-cache (1.2) lib/rack/cache/context.rb:185:in lookup' rack-cache (1.2) lib/rack/cache/context.rb:66:incall!' rack-cache (1.2) lib/rack/cache/context.rb:51:in call' railties (3.2.2) lib/rails/engine.rb:479:incall' railties (3.2.2) lib/rails/application.rb:220:in call' railties (3.2.2) lib/rails/railtie/configurable.rb:30:inmethod_missing' passenger (3.0.11) lib/phusion_passenger/rack/request_handler.rb:96:in process_request' passenger (3.0.11) lib/phusion_passenger/abstract_request_handler.rb:513:inaccept_and_process_next_request' passenger (3.0.11) lib/phusion_passenger/abstract_request_handler.rb:274:in main_loop' passenger (3.0.11) lib/phusion_passenger/rack/application_spawner.rb:206:instart_request_handler' passenger (3.0.11) lib/phusion_passenger/rack/application_spawner.rb:171:in block in handle_spawn_application' passenger (3.0.11) lib/phusion_passenger/utils.rb:479:insafe_fork' passenger (3.0.11) lib/phusion_passenger/rack/application_spawner.rb:166:in handle_spawn_application' passenger (3.0.11) lib/phusion_passenger/abstract_server.rb:357:inserver_main_loop' passenger (3.0.11) lib/phusion_passenger/abstract_server.rb:206:in start_synchronously' passenger (3.0.11) lib/phusion_passenger/abstract_server.rb:180:instart' passenger (3.0.11) lib/phusion_passenger/rack/application_spawner.rb:129:in start' passenger (3.0.11) lib/phusion_passenger/spawn_manager.rb:253:inblock (2 levels) in spawn_rack_application' passenger (3.0.11) lib/phusion_passenger/abstract_server_collection.rb:132:in lookup_or_add' passenger (3.0.11) lib/phusion_passenger/spawn_manager.rb:246:inblock in spawn_rack_application' passenger (3.0.11) lib/phusion_passenger/abstract_server_collection.rb:82:in `block in synchronize'

:10:in`synchronize' passenger (3.0.11) lib/phusion_passenger/abstract_server_collection.rb:79:in `synchronize' passenger (3.0.11) lib/phusion_passenger/spawn_manager.rb:244:in`spawn_rack_application' passenger (3.0.11) lib/phusion_passenger/spawn_manager.rb:137:in `spawn_application' passenger (3.0.11) lib/phusion_passenger/spawn_manager.rb:275:in`handle_spawn_application' passenger (3.0.11) lib/phusion_passenger/abstract_server.rb:357:in `server_main_loop' passenger (3.0.11) lib/phusion_passenger/abstract_server.rb:206:in`start_synchronously' passenger (3.0.11) helper-scripts/passenger-spawn-server:99:in `
'
spinosa commented 12 years ago

looks like you fixed this @hsztul , no?

please close the issue if that's the case

hsztul commented 12 years ago

never knew this existed.