NameError in UsersController#show
dhawalshah opened this issue · 1 comments
I am trying to install spree_affiliate, which requires store_credits. However, upon installing store_credits, the Account page for users throws the following error when rendering:
undefined local variable or method `object' for #UsersController:0x0000010bd8c898
Here is the full trace:
spree_store_credits (1.0.1) app/controllers/users_controller_decorator.rb:7:in find_orders_with_store_credit' activesupport (3.1.3) lib/active_support/callbacks.rb:457:in
_run__313994170230185625__process_action__175903687477218981__callbacks'
activesupport (3.1.3) lib/active_support/callbacks.rb:386:in _run_process_action_callbacks' activesupport (3.1.3) lib/active_support/callbacks.rb:81:in
run_callbacks'
actionpack (3.1.3) lib/abstract_controller/callbacks.rb:17:in process_action' actionpack (3.1.3) lib/action_controller/metal/rescue.rb:17:in
process_action'
actionpack (3.1.3) lib/action_controller/metal/instrumentation.rb:30:in block in process_action' activesupport (3.1.3) lib/active_support/notifications.rb:53:in
block in instrument'
activesupport (3.1.3) lib/active_support/notifications/instrumenter.rb:21:in instrument' activesupport (3.1.3) lib/active_support/notifications.rb:53:in
instrument'
actionpack (3.1.3) lib/action_controller/metal/instrumentation.rb:29:in process_action' actionpack (3.1.3) lib/action_controller/metal/params_wrapper.rb:201:in
process_action'
activerecord (3.1.3) lib/active_record/railties/controller_runtime.rb:18:in process_action' actionpack (3.1.3) lib/abstract_controller/base.rb:121:in
process'
actionpack (3.1.3) lib/abstract_controller/rendering.rb:45:in process' actionpack (3.1.3) lib/action_controller/metal.rb:193:in
dispatch'
actionpack (3.1.3) lib/action_controller/metal/rack_delegation.rb:14:in dispatch' actionpack (3.1.3) lib/action_controller/metal.rb:236:in
block in action'
actionpack (3.1.3) lib/action_dispatch/routing/route_set.rb:65:in call' actionpack (3.1.3) lib/action_dispatch/routing/route_set.rb:65:in
dispatch'
actionpack (3.1.3) lib/action_dispatch/routing/route_set.rb:29:in call' rack-mount (0.8.3) lib/rack/mount/route_set.rb:152:in
block in call'
rack-mount (0.8.3) lib/rack/mount/code_generation.rb:96:in block in recognize' rack-mount (0.8.3) lib/rack/mount/code_generation.rb:75:in
optimized_each'
rack-mount (0.8.3) lib/rack/mount/code_generation.rb:95:in recognize' rack-mount (0.8.3) lib/rack/mount/route_set.rb:141:in
call'
actionpack (3.1.3) lib/action_dispatch/routing/route_set.rb:532:in call' spree_core (0.70.3) lib/redirect_legacy_product_url.rb:10:in
call'
spree_core (0.70.3) lib/middleware/seo_assist.rb:23:in call' warden (1.0.6) lib/warden/manager.rb:35:in
block in call'
warden (1.0.6) lib/warden/manager.rb:34:in catch' warden (1.0.6) lib/warden/manager.rb:34:in
call'
actionpack (3.1.3) lib/action_dispatch/middleware/best_standards_support.rb:17:in call' rack (1.3.5) lib/rack/etag.rb:23:in
call'
rack (1.3.5) lib/rack/conditionalget.rb:25:in call' actionpack (3.1.3) lib/action_dispatch/middleware/head.rb:14:in
call'
actionpack (3.1.3) lib/action_dispatch/middleware/params_parser.rb:21:in call' actionpack (3.1.3) lib/action_dispatch/middleware/flash.rb:247:in
call'
rack (1.3.5) lib/rack/session/abstract/id.rb:195:in context' rack (1.3.5) lib/rack/session/abstract/id.rb:190:in
call'
actionpack (3.1.3) lib/action_dispatch/middleware/cookies.rb:331:in call' activerecord (3.1.3) lib/active_record/query_cache.rb:64:in
call'
activerecord (3.1.3) lib/active_record/connection_adapters/abstract/connection_pool.rb:477:in call' actionpack (3.1.3) lib/action_dispatch/middleware/callbacks.rb:29:in
block in call'
activesupport (3.1.3) lib/active_support/callbacks.rb:392:in _run_call_callbacks' activesupport (3.1.3) lib/active_support/callbacks.rb:81:in
run_callbacks'
actionpack (3.1.3) lib/action_dispatch/middleware/callbacks.rb:28:in call' actionpack (3.1.3) lib/action_dispatch/middleware/reloader.rb:68:in
call'
rack (1.3.5) lib/rack/sendfile.rb:101:in call' actionpack (3.1.3) lib/action_dispatch/middleware/remote_ip.rb:48:in
call'
actionpack (3.1.3) lib/action_dispatch/middleware/show_exceptions.rb:47:in call' railties (3.1.3) lib/rails/rack/logger.rb:13:in
call'
rack (1.3.5) lib/rack/methodoverride.rb:24:in call' rack (1.3.5) lib/rack/runtime.rb:17:in
call'
activesupport (3.1.3) lib/active_support/cache/strategy/local_cache.rb:72:in call' rack (1.3.5) lib/rack/lock.rb:15:in
call'
actionpack (3.1.3) lib/action_dispatch/middleware/static.rb:53:in call' actionpack (3.1.3) lib/action_dispatch/middleware/static.rb:53:in
call'
railties (3.1.3) lib/rails/engine.rb:456:in call' rack (1.3.5) lib/rack/content_length.rb:14:in
call'
railties (3.1.3) lib/rails/rack/log_tailer.rb:14:in call' rack (1.3.5) lib/rack/handler/webrick.rb:59:in
service'
How do I resolve this?
Cannot replicate on master.