Closed spinosa closed 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:
viewable_by?' for nil:NilClass app/controllers/v1/roll_controller.rb:22:in
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'
block in show' lib/stats/stats_manager.rb:35:in
show' actionpack (3.2.2) lib/action_controller/metal/implicit_render.rb:4:in
process_action' actionpack (3.2.2) lib/action_controller/metal/rendering.rb:10:in
block in process_action' activesupport (3.2.2) lib/active_support/callbacks.rb:425:in
__run_callback' activesupport (3.2.2) lib/active_support/callbacks.rb:385:in
run_callbacks' actionpack (3.2.2) lib/abstract_controller/callbacks.rb:17:in
process_action' actionpack (3.2.2) lib/action_controller/metal/instrumentation.rb:30:in
block in instrument' activesupport (3.2.2) lib/active_support/notifications/instrumenter.rb:20:in
instrument' actionpack (3.2.2) lib/action_controller/metal/instrumentation.rb:29:in
process_action' newrelic_rpm (3.3.4.1) lib/new_relic/agent/instrumentation/rails3/action_controller.rb:34:in
block in perform_action_with_newrelic_trace' newrelic_rpm (3.3.4.1) lib/new_relic/agent/method_tracer.rb:242:in
perform_action_with_newrelic_trace' newrelic_rpm (3.3.4.1) lib/new_relic/agent/instrumentation/rails3/action_controller.rb:33:in
process' actionpack (3.2.2) lib/abstract_controller/rendering.rb:45:in
dispatch' actionpack (3.2.2) lib/action_controller/metal/rack_delegation.rb:14:in
block in action' 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:in
block in call' journey (1.0.3) lib/journey/router.rb:56:in
call' actionpack (3.2.2) lib/action_dispatch/routing/route_set.rb:594:in
call!' omniauth (1.0.3) lib/omniauth/strategy.rb:148:in
call' exception_notification (2.5.2) lib/exception_notifier.rb:25:in
call' /home/gt/.rvm/gems/ruby-1.9.3-p125/bundler/gems/mongomapper-f856b5d6c85b/lib/mongo_mapper/middleware/identity_map.rb:10:in
call' rack-cors (0.2.4) lib/rack/cors.rb:51:in
block in call' warden (1.1.1) lib/warden/manager.rb:34:in
call' actionpack (3.2.2) lib/action_dispatch/middleware/best_standards_support.rb:17:in
call' rack (1.4.1) lib/rack/conditionalget.rb:25:in
call' actionpack (3.2.2) lib/action_dispatch/middleware/params_parser.rb:21:in
call' rack (1.4.1) lib/rack/session/abstract/id.rb:205:in
call' actionpack (3.2.2) lib/action_dispatch/middleware/cookies.rb:338:in
block in call' activesupport (3.2.2) lib/active_support/callbacks.rb:405:in
run_callbacks' actionpack (3.2.2) lib/action_dispatch/middleware/callbacks.rb:27:in
call' actionpack (3.2.2) lib/action_dispatch/middleware/debug_exceptions.rb:16:in
call' railties (3.2.2) lib/rails/rack/logger.rb:26:in
call' actionpack (3.2.2) lib/action_dispatch/middleware/request_id.rb:22:in
call' rack (1.4.1) lib/rack/runtime.rb:17:in
call' rack (1.4.1) lib/rack/lock.rb:15:in
forward' rack-cache (1.2) lib/rack/cache/context.rb:245:in
lookup' rack-cache (1.2) lib/rack/cache/context.rb:66:in
call' railties (3.2.2) lib/rails/engine.rb:479:in
call' railties (3.2.2) lib/rails/railtie/configurable.rb:30:in
process_request' passenger (3.0.11) lib/phusion_passenger/abstract_request_handler.rb:513:in
main_loop' passenger (3.0.11) lib/phusion_passenger/rack/application_spawner.rb:206:in
block in handle_spawn_application' passenger (3.0.11) lib/phusion_passenger/utils.rb:479:in
handle_spawn_application' passenger (3.0.11) lib/phusion_passenger/abstract_server.rb:357:in
start_synchronously' passenger (3.0.11) lib/phusion_passenger/abstract_server.rb:180:in
start' passenger (3.0.11) lib/phusion_passenger/spawn_manager.rb:253:in
lookup_or_add' passenger (3.0.11) lib/phusion_passenger/spawn_manager.rb:246:in
looks like you fixed this @hsztul , no?
please close the issue if that's the case
never knew this existed.
A NoMethodError occurred in roll#show:
undefined method
viewable_by?' for nil:NilClass app/controllers/v1/roll_controller.rb:22:in
block in show' ------------------------------- Request:app/controllers/v1/roll_controller.rb:22:in
block in show' lib/stats/stats_manager.rb:35:in
time' app/controllers/v1/roll_controller.rb:17:inshow' actionpack (3.2.2) lib/action_controller/metal/implicit_render.rb:4:in
send_action' actionpack (3.2.2) lib/abstract_controller/base.rb:167:inprocess_action' actionpack (3.2.2) lib/action_controller/metal/rendering.rb:10:in
process_action' actionpack (3.2.2) lib/abstract_controller/callbacks.rb:18:inblock 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:inrun_callbacks' actionpack (3.2.2) lib/abstract_controller/callbacks.rb:17:in
process_action' actionpack (3.2.2) lib/action_controller/metal/rescue.rb:29:inprocess_action' actionpack (3.2.2) lib/action_controller/metal/instrumentation.rb:30:in
block in process_action' activesupport (3.2.2) lib/active_support/notifications.rb:123:inblock in instrument' activesupport (3.2.2) lib/active_support/notifications/instrumenter.rb:20:in
instrument' activesupport (3.2.2) lib/active_support/notifications.rb:123:ininstrument' actionpack (3.2.2) lib/action_controller/metal/instrumentation.rb:29:in
process_action' actionpack (3.2.2) lib/action_controller/metal/params_wrapper.rb:205:inprocess_action' newrelic_rpm (3.3.4.1) lib/new_relic/agent/instrumentation/rails3/action_controller.rb:34:in
block in process_action' newrelic_rpm (3.3.4.1) lib/new_relic/agent/instrumentation/controller_instrumentation.rb:255:inblock in perform_action_with_newrelic_trace' newrelic_rpm (3.3.4.1) lib/new_relic/agent/method_tracer.rb:242:in
trace_execution_scoped' newrelic_rpm (3.3.4.1) lib/new_relic/agent/instrumentation/controller_instrumentation.rb:250:inperform_action_with_newrelic_trace' newrelic_rpm (3.3.4.1) lib/new_relic/agent/instrumentation/rails3/action_controller.rb:33:in
process_action' actionpack (3.2.2) lib/abstract_controller/base.rb:121:inprocess' actionpack (3.2.2) lib/abstract_controller/rendering.rb:45:in
process' actionpack (3.2.2) lib/action_controller/metal.rb:203:indispatch' actionpack (3.2.2) lib/action_controller/metal/rack_delegation.rb:14:in
dispatch' actionpack (3.2.2) lib/action_controller/metal.rb:246:inblock in action' actionpack (3.2.2) lib/action_dispatch/routing/route_set.rb:67:in
call' actionpack (3.2.2) lib/action_dispatch/routing/route_set.rb:67:indispatch' actionpack (3.2.2) lib/action_dispatch/routing/route_set.rb:30:in
call' journey (1.0.3) lib/journey/router.rb:68:inblock in call' journey (1.0.3) lib/journey/router.rb:56:in
each' journey (1.0.3) lib/journey/router.rb:56:incall' actionpack (3.2.2) lib/action_dispatch/routing/route_set.rb:594:in
call' omniauth (1.0.3) lib/omniauth/strategy.rb:168:incall!' omniauth (1.0.3) lib/omniauth/strategy.rb:148:in
call' omniauth (1.0.3) lib/omniauth/strategy.rb:168:incall!' omniauth (1.0.3) lib/omniauth/strategy.rb:148:in
call' omniauth (1.0.3) lib/omniauth/strategy.rb:168:incall!' omniauth (1.0.3) lib/omniauth/strategy.rb:148:in
call' omniauth (1.0.3) lib/omniauth/builder.rb:42:incall' exception_notification (2.5.2) lib/exception_notifier.rb:25:in
call' newrelic_rpm (3.3.4.1) lib/new_relic/rack/browser_monitoring.rb:23:incall' /home/gt/.rvm/gems/ruby-1.9.3-p125/bundler/gems/mongomapper-f856b5d6c85b/lib/mongo_mapper/middleware/identity_map.rb:10:in
call' sass (3.1.15) lib/sass/plugin/rack.rb:54:incall' rack-cors (0.2.4) lib/rack/cors.rb:51:in
call' warden (1.1.1) lib/warden/manager.rb:35:inblock in call' warden (1.1.1) lib/warden/manager.rb:34:in
catch' warden (1.1.1) lib/warden/manager.rb:34:incall' actionpack (3.2.2) lib/action_dispatch/middleware/best_standards_support.rb:17:in
call' rack (1.4.1) lib/rack/etag.rb:23:incall' rack (1.4.1) lib/rack/conditionalget.rb:25:in
call' actionpack (3.2.2) lib/action_dispatch/middleware/head.rb:14:incall' actionpack (3.2.2) lib/action_dispatch/middleware/params_parser.rb:21:in
call' actionpack (3.2.2) lib/action_dispatch/middleware/flash.rb:242:incall' rack (1.4.1) lib/rack/session/abstract/id.rb:205:in
context' rack (1.4.1) lib/rack/session/abstract/id.rb:200:incall' actionpack (3.2.2) lib/action_dispatch/middleware/cookies.rb:338:in
call' actionpack (3.2.2) lib/action_dispatch/middleware/callbacks.rb:28:inblock 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:inrun_callbacks' actionpack (3.2.2) lib/action_dispatch/middleware/callbacks.rb:27:in
call' actionpack (3.2.2) lib/action_dispatch/middleware/remote_ip.rb:31:incall' actionpack (3.2.2) lib/action_dispatch/middleware/debug_exceptions.rb:16:in
call' actionpack (3.2.2) lib/action_dispatch/middleware/show_exceptions.rb:56:incall' railties (3.2.2) lib/rails/rack/logger.rb:26:in
call_app' railties (3.2.2) lib/rails/rack/logger.rb:16:incall' actionpack (3.2.2) lib/action_dispatch/middleware/request_id.rb:22:in
call' rack (1.4.1) lib/rack/methodoverride.rb:21:incall' rack (1.4.1) lib/rack/runtime.rb:17:in
call' activesupport (3.2.2) lib/active_support/cache/strategy/local_cache.rb:72:incall' rack (1.4.1) lib/rack/lock.rb:15:in
call' rack-cache (1.2) lib/rack/cache/context.rb:136:inforward' rack-cache (1.2) lib/rack/cache/context.rb:245:in
fetch' rack-cache (1.2) lib/rack/cache/context.rb:185:inlookup' rack-cache (1.2) lib/rack/cache/context.rb:66:in
call!' rack-cache (1.2) lib/rack/cache/context.rb:51:incall' railties (3.2.2) lib/rails/engine.rb:479:in
call' railties (3.2.2) lib/rails/application.rb:220:incall' railties (3.2.2) lib/rails/railtie/configurable.rb:30:in
method_missing' passenger (3.0.11) lib/phusion_passenger/rack/request_handler.rb:96:inprocess_request' passenger (3.0.11) lib/phusion_passenger/abstract_request_handler.rb:513:in
accept_and_process_next_request' passenger (3.0.11) lib/phusion_passenger/abstract_request_handler.rb:274:inmain_loop' passenger (3.0.11) lib/phusion_passenger/rack/application_spawner.rb:206:in
start_request_handler' passenger (3.0.11) lib/phusion_passenger/rack/application_spawner.rb:171:inblock in handle_spawn_application' passenger (3.0.11) lib/phusion_passenger/utils.rb:479:in
safe_fork' passenger (3.0.11) lib/phusion_passenger/rack/application_spawner.rb:166:inhandle_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:instart_synchronously' passenger (3.0.11) lib/phusion_passenger/abstract_server.rb:180:in
start' passenger (3.0.11) lib/phusion_passenger/rack/application_spawner.rb:129:instart' passenger (3.0.11) lib/phusion_passenger/spawn_manager.rb:253:in
block (2 levels) in spawn_rack_application' passenger (3.0.11) lib/phusion_passenger/abstract_server_collection.rb:132:inlookup_or_add' passenger (3.0.11) lib/phusion_passenger/spawn_manager.rb:246:in
block in spawn_rack_application' passenger (3.0.11) lib/phusion_passenger/abstract_server_collection.rb:82:in `block in synchronize'