Skip to content

Instantly share code, notes, and snippets.

@eric-hu
Created July 18, 2011 22:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save eric-hu/1090790 to your computer and use it in GitHub Desktop.
Save eric-hu/1090790 to your computer and use it in GitHub Desktop.
Rack-recaptcha 0.6.0 throws an ActionView Template error
undefined local variable or method `request' for #<ActionView::Helpers::FormBuilder:0x7fd39d2120f0> (ActionView::Template::Error)
/home/eric/.rvm/gems/ruby-1.8.7-p352@global/gems/rack-recaptcha-0.6.0/lib/rack/recaptcha/helpers.rb:37:in `recaptcha_tag'
./app/views/registrations/new.html.erb:19:in `_app_views_registrations_new_html_erb___1988303414_70273426200640_0'
/home/eric/.rvm/gems/ruby-1.8.7-p352@global/gems/actionpack-3.0.9/lib/action_view/helpers/capture_helper.rb:40:in `capture_without_haml'
/home/eric/.rvm/gems/ruby-1.8.7-p352@global/gems/actionpack-3.0.9/lib/action_view/helpers/capture_helper.rb:172:in `with_output_buffer_without_haml_xss'
/home/eric/.rvm/gems/ruby-1.8.7-p352@global/gems/haml-3.1.2/lib/haml/helpers/xss_mods.rb:109:in `with_output_buffer'
/home/eric/.rvm/gems/ruby-1.8.7-p352@global/gems/actionpack-3.0.9/lib/action_view/helpers/capture_helper.rb:40:in `capture_without_haml'
/home/eric/.rvm/gems/ruby-1.8.7-p352@global/gems/haml-3.1.2/lib/haml/helpers/action_view_mods.rb:104:in `capture'
/home/eric/.rvm/gems/ruby-1.8.7-p352@global/gems/actionpack-3.0.9/lib/action_view/helpers/form_helper.rb:545:in `fields_for'
/home/eric/.rvm/gems/ruby-1.8.7-p352@global/gems/actionpack-3.0.9/lib/action_view/helpers/form_helper.rb:320:in `form_for_without_haml'
/home/eric/.rvm/gems/ruby-1.8.7-p352@global/gems/haml-3.1.2/lib/haml/helpers/action_view_mods.rb:181:in `form_for_without_haml_xss'
/home/eric/.rvm/gems/ruby-1.8.7-p352@global/gems/haml-3.1.2/lib/haml/helpers/xss_mods.rb:132:in `form_for'
./app/views/registrations/new.html.erb:3:in `_app_views_registrations_new_html_erb___1988303414_70273426200640_0'
/home/eric/.rvm/gems/ruby-1.8.7-p352@global/gems/actionpack-3.0.9/lib/action_view/template.rb:135:in `send'
/home/eric/.rvm/gems/ruby-1.8.7-p352@global/gems/actionpack-3.0.9/lib/action_view/template.rb:135:in `render'
/home/eric/.rvm/gems/ruby-1.8.7-p352@global/gems/activesupport-3.0.9/lib/active_support/notifications.rb:54:in `instrument'
/home/eric/.rvm/gems/ruby-1.8.7-p352@global/gems/actionpack-3.0.9/lib/action_view/template.rb:127:in `render'
/home/eric/.rvm/gems/ruby-1.8.7-p352@global/gems/actionpack-3.0.9/lib/action_view/render/rendering.rb:59:in `_render_template'
/home/eric/.rvm/gems/ruby-1.8.7-p352@global/gems/activesupport-3.0.9/lib/active_support/notifications.rb:52:in `instrument'
/home/eric/.rvm/gems/ruby-1.8.7-p352@global/gems/activesupport-3.0.9/lib/active_support/notifications/instrumenter.rb:21:in `instrument'
/home/eric/.rvm/gems/ruby-1.8.7-p352@global/gems/activesupport-3.0.9/lib/active_support/notifications.rb:52:in `instrument'
/home/eric/.rvm/gems/ruby-1.8.7-p352@global/gems/actionpack-3.0.9/lib/action_view/render/rendering.rb:56:in `_render_template'
/home/eric/.rvm/gems/ruby-1.8.7-p352@global/gems/actionpack-3.0.9/lib/action_view/render/rendering.rb:26:in `render_without_haml'
/home/eric/.rvm/gems/ruby-1.8.7-p352@global/gems/haml-3.1.2/lib/haml/helpers/action_view_mods.rb:13:in `render'
/home/eric/.rvm/gems/ruby-1.8.7-p352@global/gems/actionpack-3.0.9/lib/abstract_controller/rendering.rb:115:in `_render_template'
/home/eric/.rvm/gems/ruby-1.8.7-p352@global/gems/actionpack-3.0.9/lib/abstract_controller/rendering.rb:109:in `render_to_body'
/home/eric/.rvm/gems/ruby-1.8.7-p352@global/gems/actionpack-3.0.9/lib/action_controller/metal/renderers.rb:47:in `render_to_body'
/home/eric/.rvm/gems/ruby-1.8.7-p352@global/gems/actionpack-3.0.9/lib/action_controller/metal/compatibility.rb:55:in `render_to_body'
/home/eric/.rvm/gems/ruby-1.8.7-p352@global/gems/actionpack-3.0.9/lib/abstract_controller/rendering.rb:102:in `render_to_string'
/home/eric/.rvm/gems/ruby-1.8.7-p352@global/gems/actionpack-3.0.9/lib/abstract_controller/rendering.rb:93:in `render'
/home/eric/.rvm/gems/ruby-1.8.7-p352@global/gems/actionpack-3.0.9/lib/action_controller/metal/rendering.rb:17:in `render'
/home/eric/.rvm/gems/ruby-1.8.7-p352@global/gems/actionpack-3.0.9/lib/action_controller/metal/instrumentation.rb:40:in `render'
/home/eric/.rvm/gems/ruby-1.8.7-p352@global/gems/activesupport-3.0.9/lib/active_support/core_ext/benchmark.rb:5:in `ms'
/home/eric/.rvm/rubies/ruby-1.8.7-p352/lib/ruby/1.8/benchmark.rb:308:in `realtime'
/home/eric/.rvm/gems/ruby-1.8.7-p352@global/gems/activesupport-3.0.9/lib/active_support/core_ext/benchmark.rb:5:in `ms'
/home/eric/.rvm/gems/ruby-1.8.7-p352@global/gems/actionpack-3.0.9/lib/action_controller/metal/instrumentation.rb:40:in `render'
/home/eric/.rvm/gems/ruby-1.8.7-p352@global/gems/actionpack-3.0.9/lib/action_controller/metal/instrumentation.rb:78:in `cleanup_view_runtime'
/home/eric/.rvm/gems/ruby-1.8.7-p352@global/gems/activerecord-3.0.9/lib/active_record/railties/controller_runtime.rb:15:in `cleanup_view_runtime'
/home/eric/.rvm/gems/ruby-1.8.7-p352@global/gems/actionpack-3.0.9/lib/action_controller/metal/instrumentation.rb:39:in `render'
./app/controllers/registrations_controller.rb:6:in `new'
/home/eric/.rvm/gems/ruby-1.8.7-p352@global/gems/actionpack-3.0.9/lib/action_controller/metal/implicit_render.rb:4:in `send_action'
/home/eric/.rvm/gems/ruby-1.8.7-p352@global/gems/actionpack-3.0.9/lib/action_controller/metal/implicit_render.rb:4:in `send_action'
/home/eric/.rvm/gems/ruby-1.8.7-p352@global/gems/actionpack-3.0.9/lib/abstract_controller/base.rb:150:in `process_action'
/home/eric/.rvm/gems/ruby-1.8.7-p352@global/gems/actionpack-3.0.9/lib/action_controller/metal/rendering.rb:11:in `process_action'
/home/eric/.rvm/gems/ruby-1.8.7-p352@global/gems/actionpack-3.0.9/lib/abstract_controller/callbacks.rb:18:in `process_action'
/home/eric/.rvm/gems/ruby-1.8.7-p352@global/gems/activesupport-3.0.9/lib/active_support/callbacks.rb:446:in `_run__799082383__process_action__943997142__callbacks'
/home/eric/.rvm/gems/ruby-1.8.7-p352@global/gems/activesupport-3.0.9/lib/active_support/callbacks.rb:410:in `send'
/home/eric/.rvm/gems/ruby-1.8.7-p352@global/gems/activesupport-3.0.9/lib/active_support/callbacks.rb:410:in `_run_process_action_callbacks'
/home/eric/.rvm/gems/ruby-1.8.7-p352@global/gems/activesupport-3.0.9/lib/active_support/callbacks.rb:94:in `send'
/home/eric/.rvm/gems/ruby-1.8.7-p352@global/gems/activesupport-3.0.9/lib/active_support/callbacks.rb:94:in `run_callbacks'
/home/eric/.rvm/gems/ruby-1.8.7-p352@global/gems/actionpack-3.0.9/lib/abstract_controller/callbacks.rb:17:in `process_action'
/home/eric/.rvm/gems/ruby-1.8.7-p352@global/gems/actionpack-3.0.9/lib/action_controller/metal/instrumentation.rb:30:in `process_action'
/home/eric/.rvm/gems/ruby-1.8.7-p352@global/gems/activesupport-3.0.9/lib/active_support/notifications.rb:52:in `instrument'
/home/eric/.rvm/gems/ruby-1.8.7-p352@global/gems/activesupport-3.0.9/lib/active_support/notifications/instrumenter.rb:21:in `instrument'
/home/eric/.rvm/gems/ruby-1.8.7-p352@global/gems/activesupport-3.0.9/lib/active_support/notifications.rb:52:in `instrument'
/home/eric/.rvm/gems/ruby-1.8.7-p352@global/gems/actionpack-3.0.9/lib/action_controller/metal/instrumentation.rb:29:in `process_action'
/home/eric/.rvm/gems/ruby-1.8.7-p352@global/gems/actionpack-3.0.9/lib/action_controller/metal/rescue.rb:17:in `process_action'
/home/eric/.rvm/gems/ruby-1.8.7-p352@global/gems/actionpack-3.0.9/lib/abstract_controller/base.rb:119:in `process'
/home/eric/.rvm/gems/ruby-1.8.7-p352@global/gems/actionpack-3.0.9/lib/abstract_controller/rendering.rb:41:in `process'
/home/eric/.rvm/gems/ruby-1.8.7-p352@global/gems/actionpack-3.0.9/lib/action_controller/metal.rb:138:in `dispatch'
/home/eric/.rvm/gems/ruby-1.8.7-p352@global/gems/actionpack-3.0.9/lib/action_controller/metal/rack_delegation.rb:14:in `dispatch'
/home/eric/.rvm/gems/ruby-1.8.7-p352@global/gems/actionpack-3.0.9/lib/action_controller/metal.rb:178:in `action'
/home/eric/.rvm/gems/ruby-1.8.7-p352@global/gems/actionpack-3.0.9/lib/action_dispatch/routing/route_set.rb:62:in `call'
/home/eric/.rvm/gems/ruby-1.8.7-p352@global/gems/actionpack-3.0.9/lib/action_dispatch/routing/route_set.rb:62:in `dispatch'
/home/eric/.rvm/gems/ruby-1.8.7-p352@global/gems/actionpack-3.0.9/lib/action_dispatch/routing/route_set.rb:27:in `call'
/home/eric/.rvm/gems/ruby-1.8.7-p352@global/gems/actionpack-3.0.9/lib/action_dispatch/routing/mapper.rb:39:in `call'
/home/eric/.rvm/gems/ruby-1.8.7-p352@global/gems/rack-mount-0.6.14/lib/rack/mount/route_set.rb:148:in `call'
/home/eric/.rvm/gems/ruby-1.8.7-p352@global/gems/rack-mount-0.6.14/lib/rack/mount/code_generation.rb:93:in `recognize'
/home/eric/.rvm/gems/ruby-1.8.7-p352@global/gems/rack-mount-0.6.14/lib/rack/mount/code_generation.rb:117:in `optimized_each'
/home/eric/.rvm/gems/ruby-1.8.7-p352@global/gems/rack-mount-0.6.14/lib/rack/mount/code_generation.rb:92:in `recognize'
/home/eric/.rvm/gems/ruby-1.8.7-p352@global/gems/rack-mount-0.6.14/lib/rack/mount/route_set.rb:139:in `call'
/home/eric/.rvm/gems/ruby-1.8.7-p352@global/gems/actionpack-3.0.9/lib/action_dispatch/routing/route_set.rb:493:in `call'
/home/eric/.rvm/gems/ruby-1.8.7-p352@global/gems/oa-core-0.2.6/lib/omniauth/strategy.rb:44:in `call!'
/home/eric/.rvm/gems/ruby-1.8.7-p352@global/gems/oa-core-0.2.6/lib/omniauth/strategy.rb:30:in `call'
/home/eric/.rvm/gems/ruby-1.8.7-p352@global/gems/oa-core-0.2.6/lib/omniauth/builder.rb:30:in `call'
/home/eric/.rvm/gems/ruby-1.8.7-p352@global/gems/rack-recaptcha-0.6.0/lib/rack/recaptcha.rb:46:in `_call'
/home/eric/.rvm/gems/ruby-1.8.7-p352@global/gems/rack-recaptcha-0.6.0/lib/rack/recaptcha.rb:33:in `call'
/home/eric/.rvm/gems/ruby-1.8.7-p352@global/gems/warden-1.0.4/lib/warden/manager.rb:35:in `call'
/home/eric/.rvm/gems/ruby-1.8.7-p352@global/gems/warden-1.0.4/lib/warden/manager.rb:34:in `catch'
/home/eric/.rvm/gems/ruby-1.8.7-p352@global/gems/warden-1.0.4/lib/warden/manager.rb:34:in `call'
/home/eric/.rvm/gems/ruby-1.8.7-p352@global/gems/actionpack-3.0.9/lib/action_dispatch/middleware/best_standards_support.rb:17:in `call'
/home/eric/.rvm/gems/ruby-1.8.7-p352@global/gems/actionpack-3.0.9/lib/action_dispatch/middleware/head.rb:14:in `call'
/home/eric/.rvm/gems/ruby-1.8.7-p352@global/gems/rack-1.2.3/lib/rack/methodoverride.rb:24:in `call'
/home/eric/.rvm/gems/ruby-1.8.7-p352@global/gems/actionpack-3.0.9/lib/action_dispatch/middleware/params_parser.rb:21:in `call'
/home/eric/.rvm/gems/ruby-1.8.7-p352@global/gems/actionpack-3.0.9/lib/action_dispatch/middleware/flash.rb:182:in `call'
/home/eric/.rvm/gems/ruby-1.8.7-p352@global/gems/actionpack-3.0.9/lib/action_dispatch/middleware/session/abstract_store.rb:149:in `call'
/home/eric/.rvm/gems/ruby-1.8.7-p352@global/gems/actionpack-3.0.9/lib/action_dispatch/middleware/cookies.rb:302:in `call'
/home/eric/.rvm/gems/ruby-1.8.7-p352@global/gems/activerecord-3.0.9/lib/active_record/query_cache.rb:32:in `call'
/home/eric/.rvm/gems/ruby-1.8.7-p352@global/gems/activerecord-3.0.9/lib/active_record/connection_adapters/abstract/query_cache.rb:28:in `cache'
/home/eric/.rvm/gems/ruby-1.8.7-p352@global/gems/activerecord-3.0.9/lib/active_record/query_cache.rb:12:in `cache'
/home/eric/.rvm/gems/ruby-1.8.7-p352@global/gems/activerecord-3.0.9/lib/active_record/query_cache.rb:31:in `call'
/home/eric/.rvm/gems/ruby-1.8.7-p352@global/gems/activerecord-3.0.9/lib/active_record/connection_adapters/abstract/connection_pool.rb:354:in `call'
/home/eric/.rvm/gems/ruby-1.8.7-p352@global/gems/actionpack-3.0.9/lib/action_dispatch/middleware/callbacks.rb:46:in `call'
/home/eric/.rvm/gems/ruby-1.8.7-p352@global/gems/activesupport-3.0.9/lib/active_support/callbacks.rb:416:in `_run_call_callbacks'
/home/eric/.rvm/gems/ruby-1.8.7-p352@global/gems/actionpack-3.0.9/lib/action_dispatch/middleware/callbacks.rb:44:in `call'
/home/eric/.rvm/gems/ruby-1.8.7-p352@global/gems/rack-1.2.3/lib/rack/sendfile.rb:107:in `call'
/home/eric/.rvm/gems/ruby-1.8.7-p352@global/gems/actionpack-3.0.9/lib/action_dispatch/middleware/remote_ip.rb:48:in `call'
/home/eric/.rvm/gems/ruby-1.8.7-p352@global/gems/actionpack-3.0.9/lib/action_dispatch/middleware/show_exceptions.rb:47:in `__cucumber_orig_call__'
/home/eric/.rvm/gems/ruby-1.8.7-p352@global/gems/cucumber-rails-1.0.2/lib/cucumber/rails/action_controller.rb:10:in `call'
/home/eric/.rvm/gems/ruby-1.8.7-p352@global/gems/railties-3.0.9/lib/rails/rack/logger.rb:13:in `call'
/home/eric/.rvm/gems/ruby-1.8.7-p352@global/gems/rack-1.2.3/lib/rack/runtime.rb:17:in `call'
/home/eric/.rvm/gems/ruby-1.8.7-p352@global/gems/activesupport-3.0.9/lib/active_support/cache/strategy/local_cache.rb:72:in `call'
/home/eric/.rvm/gems/ruby-1.8.7-p352@global/gems/rack-1.2.3/lib/rack/lock.rb:11:in `call'
/home/eric/.rvm/gems/ruby-1.8.7-p352@global/gems/rack-1.2.3/lib/rack/lock.rb:11:in `synchronize'
/home/eric/.rvm/gems/ruby-1.8.7-p352@global/gems/rack-1.2.3/lib/rack/lock.rb:11:in `call'
/home/eric/.rvm/gems/ruby-1.8.7-p352@global/gems/actionpack-3.0.9/lib/action_dispatch/middleware/static.rb:30:in `call'
/home/eric/.rvm/gems/ruby-1.8.7-p352@global/gems/railties-3.0.9/lib/rails/application.rb:168:in `call'
/home/eric/.rvm/gems/ruby-1.8.7-p352@global/gems/rack-1.2.3/lib/rack/urlmap.rb:47:in `call'
/home/eric/.rvm/gems/ruby-1.8.7-p352@global/gems/rack-1.2.3/lib/rack/urlmap.rb:41:in `each'
/home/eric/.rvm/gems/ruby-1.8.7-p352@global/gems/rack-1.2.3/lib/rack/urlmap.rb:41:in `call'
/home/eric/.rvm/gems/ruby-1.8.7-p352@global/gems/rack-test-0.5.7/lib/rack/mock_session.rb:30:in `request'
/home/eric/.rvm/gems/ruby-1.8.7-p352@global/gems/rack-test-0.5.7/lib/rack/test.rb:209:in `process_request'
/home/eric/.rvm/gems/ruby-1.8.7-p352@global/gems/rack-test-0.5.7/lib/rack/test.rb:57:in `get'
/home/eric/.rvm/gems/ruby-1.8.7-p352@global/gems/capybara-1.0.0/lib/capybara/rack_test/browser.rb:53:in `send'
/home/eric/.rvm/gems/ruby-1.8.7-p352@global/gems/capybara-1.0.0/lib/capybara/rack_test/browser.rb:53:in `process'
/home/eric/.rvm/gems/ruby-1.8.7-p352@global/gems/capybara-1.0.0/lib/capybara/rack_test/browser.rb:24:in `follow'
/home/eric/.rvm/gems/ruby-1.8.7-p352@global/gems/capybara-1.0.0/lib/capybara/rack_test/node.rb:52:in `click_without_javascript_emulation'
/home/eric/.rvm/gems/ruby-1.8.7-p352@global/gems/cucumber-rails-1.0.2/lib/cucumber/rails/capybara/javascript_emulation.rb:16:in `click'
/home/eric/.rvm/gems/ruby-1.8.7-p352@global/gems/capybara-1.0.0/lib/capybara/node/element.rb:93:in `click'
/home/eric/.rvm/gems/ruby-1.8.7-p352@global/gems/capybara-1.0.0/lib/capybara/node/actions.rb:27:in `click_link'
(eval):2:in `send'
(eval):2:in `click_link'
/home/eric/.rvm/gems/ruby-1.8.7-p352@global/gems/capybara-1.0.0/lib/capybara/dsl.rb:139:in `click_link'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment