Skip to content

Instantly share code, notes, and snippets.

@sbull
Created February 18, 2015 03:07
Show Gist options
  • Save sbull/65c985c09e6c430af595 to your computer and use it in GitHub Desktop.
Save sbull/65c985c09e6c430af595 to your computer and use it in GitHub Desktop.
Stacktrace of "ActionView::Template::Error: undefined method `url_options'" on rails_admin.show_path(...) for https://github.com/puma/puma/issues/647
ActionView::Template::Error undefined method `url_options' for #<Module:0x007fbdc252fbc0>
Stacktrace (most recent call first):
action_dispatch/routing/route_set.rb:271:in `call'
controller_options = t.url_options
action_dispatch/routing/route_set.rb:222:in `call'
super
action_dispatch/routing/route_set.rb:334:in `block (2 levels) in define_url_helper'
helper.call self, args, options
action_dispatch/routing/routes_proxy.rb:31:in `show_path'
routes.url_helpers.#{method}(*args)
/app/app/views/admin_mod/dashboard/index.html.slim:58:in `block in _app_views_admin_mod_dashboard_index_html_slim__3839952879104469635_70226474883600'
a href=rails_admin.show_path(model_name: 'prescription_request', id: rx_request.id)
/app/app/views/admin_mod/dashboard/index.html.slim:52:in `each'
- @rx_requests.each do |rx_request|
/app/app/views/admin_mod/dashboard/index.html.slim:52:in `_app_views_admin_mod_dashboard_index_html_slim__3839952879104469635_70226474883600'
- @rx_requests.each do |rx_request|
action_view/template.rb:145:in `block in render'
view.send(method_name, locals, buffer, &block)
active_support/notifications.rb:164:in `block in instrument'
instrumenter.instrument(name, payload) { yield payload if block_given? }
active_support/notifications/instrumenter.rb:20:in `instrument'
yield payload
active_support/notifications.rb:164:in `instrument'
instrumenter.instrument(name, payload) { yield payload if block_given? }
action_view/template.rb:333:in `instrument'
ActiveSupport::Notifications.instrument("#{action}.action_view", payload, &block)
action_view/template.rb:143:in `render'
instrument("!render_template") do
action_view/renderer/template_renderer.rb:54:in `block (2 levels) in render_template'
template.render(view, locals) { |*name| view._layout_for(*name) }
action_view/renderer/abstract_renderer.rb:39:in `block in instrument'
ActiveSupport::Notifications.instrument("render_#{name}.action_view", options){ yield }
active_support/notifications.rb:164:in `block in instrument'
instrumenter.instrument(name, payload) { yield payload if block_given? }
active_support/notifications/instrumenter.rb:20:in `instrument'
yield payload
active_support/notifications.rb:164:in `instrument'
instrumenter.instrument(name, payload) { yield payload if block_given? }
action_view/renderer/abstract_renderer.rb:39:in `instrument'
ActiveSupport::Notifications.instrument("render_#{name}.action_view", options){ yield }
action_view/renderer/template_renderer.rb:53:in `block in render_template'
instrument(:template, :identifier => template.identifier, :layout => layout.try(:virtual_path)) do
action_view/renderer/template_renderer.rb:61:in `render_with_layout'
content = yield(layout)
action_view/renderer/template_renderer.rb:52:in `render_template'
render_with_layout(layout_name, locals) do |layout|
action_view/renderer/template_renderer.rb:14:in `render'
render_template(template, options[:layout], options[:locals])
action_view/renderer/renderer.rb:42:in `render_template'
TemplateRenderer.new(@lookup_context).render(context, options)
action_view/renderer/renderer.rb:23:in `render'
render_template(context, options)
action_view/rendering.rb:100:in `_render_template'
view_renderer.render(view_context, options)
action_controller/metal/streaming.rb:217:in `_render_template'
super
action_view/rendering.rb:83:in `render_to_body'
_render_template(options)
action_controller/metal/rendering.rb:32:in `render_to_body'
super || _render_in_priorities(options) || ' '
action_controller/metal/renderers.rb:37:in `render_to_body'
_render_to_body_with_renderer(options) || super
abstract_controller/rendering.rb:25:in `render'
self.response_body = render_to_body(options)
action_controller/metal/rendering.rb:16:in `render'
super
action_controller/metal/instrumentation.rb:41:in `block (2 levels) in render'
Benchmark.ms { render_output = super }
active_support/core_ext/benchmark.rb:12:in `block in ms'
1000 * realtime { yield }
benchmark.rb:303:in `realtime'
yield
active_support/core_ext/benchmark.rb:12:in `ms'
1000 * realtime { yield }
action_controller/metal/instrumentation.rb:41:in `block in render'
Benchmark.ms { render_output = super }
action_controller/metal/instrumentation.rb:84:in `cleanup_view_runtime'
yield
active_record/railties/controller_runtime.rb:25:in `cleanup_view_runtime'
runtime = super
action_controller/metal/instrumentation.rb:40:in `render'
self.view_runtime = cleanup_view_runtime do
remotipart/render_overrides.rb:14:in `render_with_remotipart'
render_without_remotipart *args
action_controller/metal/implicit_render.rb:10:in `default_render'
render(*args)
action_controller/metal/implicit_render.rb:5:in `send_action'
default_render unless performed?
abstract_controller/base.rb:198:in `process_action'
send_action(method_name, *args)
action_controller/metal/rendering.rb:10:in `process_action'
super
abstract_controller/callbacks.rb:20:in `block in process_action'
super
active_support/callbacks.rb:117:in `call'
env.value = !env.halted && (!block || block.call)
active_support/callbacks.rb:117:in `call'
env.value = !env.halted && (!block || block.call)
active_support/callbacks.rb:169:in `block in halting'
next_callback.call env
active_support/callbacks.rb:234:in `call'
env = next_callback.call env
new_relic/agent/instrumentation/middleware_tracing.rb:57:in `call'
result = target.call(env)
active_record/query_cache.rb:36:in `call'
response = @app.call(env)
new_relic/agent/instrumentation/middleware_tracing.rb:57:in `call'
result = target.call(env)
active_record/connection_adapters/abstract/connection_pool.rb:647:in `call'
response = @app.call(env)
new_relic/agent/instrumentation/middleware_tracing.rb:57:in `call'
result = target.call(env)
action_dispatch/middleware/callbacks.rb:29:in `block in call'
@app.call(env)
active_support/callbacks.rb:88:in `call'
block.call if block
active_support/callbacks.rb:88:in `_run_callbacks'
block.call if block
active_support/callbacks.rb:734:in `_run_call_callbacks'
_run_callbacks(_#{name}_callbacks, &block)
active_support/callbacks.rb:81:in `run_callbacks'
send "_run_#{kind}_callbacks", &block
action_dispatch/middleware/callbacks.rb:27:in `call'
result = run_callbacks :call do
new_relic/agent/instrumentation/middleware_tracing.rb:57:in `call'
result = target.call(env)
action_dispatch/middleware/remote_ip.rb:78:in `call'
@app.call(env)
new_relic/agent/instrumentation/middleware_tracing.rb:57:in `call'
result = target.call(env)
action_dispatch/middleware/debug_exceptions.rb:17:in `call'
_, headers, body = response = @app.call(env)
new_relic/agent/instrumentation/middleware_tracing.rb:57:in `call'
result = target.call(env)
action_dispatch/middleware/show_exceptions.rb:30:in `call'
@app.call(env)
new_relic/agent/instrumentation/middleware_tracing.rb:57:in `call'
result = target.call(env)
rails/rack/logger.rb:38:in `call_app'
resp = @app.call(env)
rails/rack/logger.rb:20:in `block in call'
logger.tagged(compute_tags(request)) { call_app(request, env) }
active_support/tagged_logging.rb:68:in `block in tagged'
formatter.tagged(*tags) { yield self }
active_support/tagged_logging.rb:26:in `tagged'
yield self
active_support/tagged_logging.rb:68:in `tagged'
formatter.tagged(*tags) { yield self }
rails/rack/logger.rb:20:in `call'
logger.tagged(compute_tags(request)) { call_app(request, env) }
new_relic/agent/instrumentation/middleware_tracing.rb:57:in `call'
result = target.call(env)
action_dispatch/middleware/request_id.rb:21:in `call'
@app.call(env).tap { |_status, headers, _body| headers["X-Request-Id"] = env["action_dispatch.request_id"] }
new_relic/agent/instrumentation/middleware_tracing.rb:57:in `call'
result = target.call(env)
rack/methodoverride.rb:22:in `call'
@app.call(env)
new_relic/agent/instrumentation/middleware_tracing.rb:57:in `call'
result = target.call(env)
rack/runtime.rb:18:in `call'
status, headers, body = @app.call(env)
new_relic/agent/instrumentation/middleware_tracing.rb:57:in `call'
result = target.call(env)
active_support/cache/strategy/local_cache_middleware.rb:28:in `call'
response = @app.call(env)
new_relic/agent/instrumentation/middleware_tracing.rb:57:in `call'
result = target.call(env)
action_dispatch/middleware/static.rb:113:in `call'
@app.call(env)
new_relic/agent/instrumentation/middleware_tracing.rb:57:in `call'
result = target.call(env)
rack/sendfile.rb:113:in `call'
status, headers, body = @app.call(env)
new_relic/agent/instrumentation/middleware_tracing.rb:57:in `call'
result = target.call(env)
action_dispatch/middleware/ssl.rb:24:in `call'
status, headers, body = @app.call(env)
new_relic/agent/instrumentation/middleware_tracing.rb:57:in `call'
result = target.call(env)
raven/integrations/rack.rb:61:in `call'
response = @app.call(env)
new_relic/agent/instrumentation/middleware_tracing.rb:57:in `call'
result = target.call(env)
rails/engine.rb:518:in `call'
app.call(env)
rails/application.rb:164:in `call'
super(env)
new_relic/agent/instrumentation/middleware_tracing.rb:57:in `call'
result = target.call(env)
puma/configuration.rb:82:in `call'
@app.call(env)
puma/server.rb:507:in `handle_request'
status, headers, res_body = @app.call(env)
puma/server.rb:375:in `process_client'
case handle_request(client, buffer)
puma/server.rb:262:in `block in run'
process_client client, buffer
puma/thread_pool.rb:104:in `call'
block.call(work, *extra)
puma/thread_pool.rb:104:in `block in spawn_thread'
block.call(work, *extra)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment