Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Illegal id causes re-render error #561

Closed
jcoyne opened this issue May 14, 2013 · 1 comment
Closed

Illegal id causes re-render error #561

jcoyne opened this issue May 14, 2013 · 1 comment

Comments

@jcoyne
Copy link
Member

jcoyne commented May 14, 2013

AbstractController::DoubleRenderError (Render and/or redirect were called multiple times in this action. Please note that you may only call render OR redirect, and at most once per action. Also note that neither redirect nor render terminate execution of the action, so if you want to exit an action after redirecting, you need to do something like "redirect_to(...) and return".):
actionpack (3.2.13) lib/action_controller/metal/rendering.rb:15:in render' actionpack (3.2.13) lib/action_controller/metal/instrumentation.rb:40:inblock (2 levels) in render'
activesupport (3.2.13) lib/active_support/core_ext/benchmark.rb:5:in block in ms' /home/hydradm/.rvm/rubies/ruby-2.0.0-p0/lib/ruby/2.0.0/benchmark.rb:296:inrealtime'
activesupport (3.2.13) lib/active_support/core_ext/benchmark.rb:5:in ms' actionpack (3.2.13) lib/action_controller/metal/instrumentation.rb:40:inblock in render'
actionpack (3.2.13) lib/action_controller/metal/instrumentation.rb:83:in cleanup_view_runtime' activerecord (3.2.13) lib/active_record/railties/controller_runtime.rb:24:incleanup_view_runtime'
actionpack (3.2.13) lib/action_controller/metal/instrumentation.rb:39:in render' blacklight (4.2.1) lib/blacklight/catalog.rb:308:ininvalid_solr_id_error'
activesupport (3.2.13) lib/active_support/rescuable.rb:80:in call' activesupport (3.2.13) lib/active_support/rescuable.rb:80:inrescue_with_handler'
actionpack (3.2.13) lib/action_controller/metal/rescue.rb:15:in rescue_with_handler' actionpack (3.2.13) lib/action_controller/metal/rescue.rb:32:inrescue in process_action'
actionpack (3.2.13) lib/action_controller/metal/rescue.rb:29:in process_action' actionpack (3.2.13) lib/action_controller/metal/instrumentation.rb:30:inblock in process_action'
activesupport (3.2.13) lib/active_support/notifications.rb:123:in block in instrument' activesupport (3.2.13) lib/active_support/notifications/instrumenter.rb:20:ininstrument'
activesupport (3.2.13) lib/active_support/notifications.rb:123:in instrument' actionpack (3.2.13) lib/action_controller/metal/instrumentation.rb:29:inprocess_action'
actionpack (3.2.13) lib/action_controller/metal/params_wrapper.rb:207:in process_action' activerecord (3.2.13) lib/active_record/railties/controller_runtime.rb:18:inprocess_action'

@jcoyne
Copy link
Member Author

jcoyne commented May 14, 2013

Looks like an invalid_solr_id triggers a double render exception in production, and in development mode It causes a view template error:

undefined method []' for nil:NilClass`

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant