activeadmin: ActionView::Template::Error (arguments passed to url_for can't be handled.)
So, I’m UN-able to load any page in the admin navigation (e.g - /admin/users, /admin/comments etc…) on my Rails 4 app and get an exception/“we’re sorry something went wrong” error page when trying. Bare in mind that this error only occurs in production mode. Everything is working just fine in dev mode which makes it difficult for me to reproduce the issue in a new rails app and share it, unfortunately.
See the logs below, I’m sure that it has to do with the “arguements passed to_url can’t be handled” line just not quite sure the fix yet. Additionally, I’ve looked through similar cases all of which didn’t have a solution - so whoever can solve this is a gem!!!
2015-08-25T22:32:04.537959+00:00 heroku[router]: at=info method=GET path="/admin/assets" host=venuevortex-dev.herokuapp.com request_id=c17ede9d-0771-484e-ac83-1c9a63e22330 fwd="188.237.135.33" dyno=web.1 connect=1ms service=45ms status=500 bytes=1728
2015-08-25T22:32:04.497643+00:00 app[web.1]: Processing by Admin::AssetsController#index as HTML
2015-08-25T22:32:04.500010+00:00 app[web.1]: AdminUser Load (1.0ms) SELECT "admin_users".* FROM "admin_users" WHERE "admin_users"."id" = $1 ORDER BY "admin_users"."id" ASC LIMIT 1 [["id", 1]]
2015-08-25T22:32:04.527304+00:00 app[web.1]: CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "assets" LIMIT 30 OFFSET 0) subquery_for_count
2015-08-25T22:32:04.534159+00:00 app[web.1]: CACHE (0.0ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "assets" LIMIT 30 OFFSET 0) subquery_for_count
2015-08-25T22:32:04.535905+00:00 app[web.1]: Completed 500 Internal Server Error in 38ms (ActiveRecord: 3.2ms)
2015-08-25T22:32:04.495595+00:00 app[web.1]: Started GET "/admin/assets" for 188.237.135.33 at 2015-08-25 22:32:04 +0000
2015-08-25T22:32:04.497831+00:00 app[web.1]: Geokit is using the domain: herokuapp.com
2015-08-25T22:32:04.526380+00:00 app[web.1]: (1.2ms) SELECT COUNT(count_column) FROM (SELECT 1 AS count_column FROM "assets" LIMIT 30 OFFSET 0) subquery_for_count
2015-08-25T22:32:04.529208+00:00 app[web.1]: (1.0ms) SELECT COUNT(*) FROM "assets"
2015-08-25T22:32:04.535668+00:00 app[web.1]: Rendered vendor/bundle/ruby/2.2.0/bundler/gems/activeadmin-1094bd945047/app/views/active_admin/resource/index.html.arb (33.6ms)
2015-08-25T22:32:04.539287+00:00 app[web.1]: 2015-08-25T22:32:04.539290+00:00 app[web.1]: ```
**then this happens ---->** ``` ActionView::Template::Error (arguments passed to url_for can't be handled. Please require routes or provide your own implementation):
2015-08-25T22:32:04.539292+00:00 app[web.1]: 1: insert_tag renderer_for(:index)
2015-08-25T22:32:04.539293+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/actionview-4.2.3/lib/action_view/helpers/url_helper.rb:38:in `url_for'
2015-08-25T22:32:04.539296+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/bundler/gems/activeadmin-1094bd945047/lib/active_admin/view_helpers/download_format_links_helper.rb:10:in `block (2 levels) in build_download_format_links'
2015-08-25T22:32:04.539297+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/bundler/gems/activeadmin-1094bd945047/lib/active_admin/view_helpers/download_format_links_helper.rb:9:in `each'
2015-08-25T22:32:04.539299+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/bundler/gems/activeadmin-1094bd945047/lib/active_admin/view_helpers/download_format_links_helper.rb:9:in `block in build_download_format_links'
2015-08-25T22:32:04.539300+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/arbre-1.0.3/lib/arbre/element/builder_methods.rb:31:in `block in build_tag'
2015-08-25T22:32:04.539301+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/arbre-1.0.3/lib/arbre/context.rb:92:in `with_current_arbre_element'
2015-08-25T22:32:04.539303+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/arbre-1.0.3/lib/arbre/element/builder_methods.rb:49:in `with_current_arbre_element'
2015-08-25T22:32:04.539304+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/arbre-1.0.3/lib/arbre/element/builder_methods.rb:26:in `build_tag'
2015-08-25T22:32:04.539305+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/arbre-1.0.3/lib/arbre/element/builder_methods.rb:39:in `insert_tag'
2015-08-25T22:32:04.539307+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/arbre-1.0.3/lib/arbre/element/builder_methods.rb:14:in `div'
2015-08-25T22:32:04.539308+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/bundler/gems/activeadmin-1094bd945047/lib/active_admin/view_helpers/download_format_links_helper.rb:7:in `build_download_format_links'
2015-08-25T22:32:04.539309+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/bundler/gems/activeadmin-1094bd945047/lib/active_admin/views/components/paginated_collection.rb:78:in `block in build_pagination_with_formats'
2015-08-25T22:32:04.539310+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/arbre-1.0.3/lib/arbre/element/builder_methods.rb:31:in `block in build_tag'
2015-08-25T22:32:04.539312+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/arbre-1.0.3/lib/arbre/context.rb:92:in `with_current_arbre_element'
2015-08-25T22:32:04.539313+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/arbre-1.0.3/lib/arbre/element/builder_methods.rb:49:in `with_current_arbre_element'
2015-08-25T22:32:04.539314+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/arbre-1.0.3/lib/arbre/element/builder_methods.rb:26:in `build_tag'
2015-08-25T22:32:04.539315+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/arbre-1.0.3/lib/arbre/element/builder_methods.rb:39:in `insert_tag'
2015-08-25T22:32:04.539316+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/arbre-1.0.3/lib/arbre/element/builder_methods.rb:14:in `div'
2015-08-25T22:32:04.539318+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/bundler/gems/activeadmin-1094bd945047/lib/active_admin/views/components/paginated_collection.rb:68:in `build_pagination_with_formats'
2015-08-25T22:32:04.539319+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/bundler/gems/activeadmin-1094bd945047/lib/active_admin/views/components/paginated_collection.rb:52:in `build'
2015-08-25T22:32:04.539320+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/arbre-1.0.3/lib/arbre/element/builder_methods.rb:30:in `block in build_tag'
2015-08-25T22:32:04.539321+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/arbre-1.0.3/lib/arbre/context.rb:92:in `with_current_arbre_element'
2015-08-25T22:32:04.539322+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/arbre-1.0.3/lib/arbre/element/builder_methods.rb:49:in `with_current_arbre_element'
2015-08-25T22:32:04.539323+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/arbre-1.0.3/lib/arbre/element/builder_methods.rb:26:in `build_tag'
2015-08-25T22:32:04.539324+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/arbre-1.0.3/lib/arbre/element/builder_methods.rb:39:in `insert_tag'
2015-08-25T22:32:04.539325+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/arbre-1.0.3/lib/arbre/element/builder_methods.rb:14:in `paginated_collection'
2015-08-25T22:32:04.539326+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/bundler/gems/activeadmin-1094bd945047/lib/active_admin/views/pages/index.rb:132:in `render_index'
2015-08-25T22:32:04.539328+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/bundler/gems/activeadmin-1094bd945047/lib/active_admin/views/pages/index.rb:50:in `build_collection'
2015-08-25T22:32:04.539329+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/bundler/gems/activeadmin-1094bd945047/lib/active_admin/views/pages/index.rb:28:in `block in main_content'
2015-08-25T22:32:04.539330+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/arbre-1.0.3/lib/arbre/element/builder_methods.rb:31:in `block in build_tag'
2015-08-25T22:32:04.539331+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/arbre-1.0.3/lib/arbre/context.rb:92:in `with_current_arbre_element'
2015-08-25T22:32:04.539332+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/arbre-1.0.3/lib/arbre/element/builder_methods.rb:49:in `with_current_arbre_element'
2015-08-25T22:32:04.539333+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/arbre-1.0.3/lib/arbre/element/builder_methods.rb:26:in `build_tag'
2015-08-25T22:32:04.539338+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/arbre-1.0.3/lib/arbre/element/builder_methods.rb:39:in `insert_tag'
2015-08-25T22:32:04.539339+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/arbre-1.0.3/lib/arbre/element/builder_methods.rb:14:in `batch_action_form'
2015-08-25T22:32:04.539340+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/bundler/gems/activeadmin-1094bd945047/lib/active_admin/views/pages/index.rb:36:in `wrap_with_batch_action_form'
2015-08-25T22:32:04.539341+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/bundler/gems/activeadmin-1094bd945047/lib/active_admin/views/pages/index.rb:26:in `main_content'
2015-08-25T22:32:04.539342+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/bundler/gems/activeadmin-1094bd945047/lib/active_admin/views/pages/base.rb:91:in `block (2 levels) in build_main_content_wrapper'
2015-08-25T22:32:04.539343+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/arbre-1.0.3/lib/arbre/element/builder_methods.rb:31:in `block in build_tag'
2015-08-25T22:32:04.539344+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/arbre-1.0.3/lib/arbre/context.rb:92:in `with_current_arbre_element'
2015-08-25T22:32:04.539345+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/arbre-1.0.3/lib/arbre/element/builder_methods.rb:49:in `with_current_arbre_element'
2015-08-25T22:32:04.539346+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/arbre-1.0.3/lib/arbre/element/builder_methods.rb:26:in `build_tag'
2015-08-25T22:32:04.539348+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/arbre-1.0.3/lib/arbre/element/builder_methods.rb:39:in `insert_tag'
2015-08-25T22:32:04.539349+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/arbre-1.0.3/lib/arbre/element/builder_methods.rb:14:in `div'
2015-08-25T22:32:04.539351+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/bundler/gems/activeadmin-1094bd945047/lib/active_admin/views/pages/base.rb:90:in `block in build_main_content_wrapper'
2015-08-25T22:32:04.539352+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/arbre-1.0.3/lib/arbre/element/builder_methods.rb:31:in `block in build_tag'
2015-08-25T22:32:04.539353+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/arbre-1.0.3/lib/arbre/context.rb:92:in `with_current_arbre_element'
2015-08-25T22:32:04.539354+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/arbre-1.0.3/lib/arbre/element/builder_methods.rb:49:in `with_current_arbre_element'
2015-08-25T22:32:04.539355+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/arbre-1.0.3/lib/arbre/element/builder_methods.rb:26:in `build_tag'
2015-08-25T22:32:04.539356+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/arbre-1.0.3/lib/arbre/element/builder_methods.rb:39:in `insert_tag'
2015-08-25T22:32:04.539357+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/arbre-1.0.3/lib/arbre/element/builder_methods.rb:14:in `div'
2015-08-25T22:32:04.539358+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/bundler/gems/activeadmin-1094bd945047/lib/active_admin/views/pages/base.rb:89:in `build_main_content_wrapper'
2015-08-25T22:32:04.539359+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/bundler/gems/activeadmin-1094bd945047/lib/active_admin/views/pages/base.rb:75:in `block in build_page_content'
2015-08-25T22:32:04.539360+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/arbre-1.0.3/lib/arbre/element/builder_methods.rb:31:in `block in build_tag'
2015-08-25T22:32:04.539362+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/arbre-1.0.3/lib/arbre/context.rb:92:in `with_current_arbre_element'
2015-08-25T22:32:04.539363+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/arbre-1.0.3/lib/arbre/element/builder_methods.rb:49:in `with_current_arbre_element'
2015-08-25T22:32:04.539364+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/arbre-1.0.3/lib/arbre/element/builder_methods.rb:26:in `build_tag'
2015-08-25T22:32:04.539365+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/arbre-1.0.3/lib/arbre/element/builder_methods.rb:39:in `insert_tag'
2015-08-25T22:32:04.539367+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/arbre-1.0.3/lib/arbre/element/builder_methods.rb:14:in `div'
2015-08-25T22:32:04.539368+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/bundler/gems/activeadmin-1094bd945047/lib/active_admin/views/pages/base.rb:74:in `build_page_content'
2015-08-25T22:32:04.539369+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/bundler/gems/activeadmin-1094bd945047/lib/active_admin/views/pages/base.rb:52:in `block (2 levels) in build_page'
2015-08-25T22:32:04.539370+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/arbre-1.0.3/lib/arbre/element/builder_methods.rb:31:in `block in build_tag'
2015-08-25T22:32:04.539371+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/arbre-1.0.3/lib/arbre/context.rb:92:in `with_current_arbre_element'
2015-08-25T22:32:04.539372+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/arbre-1.0.3/lib/arbre/element/builder_methods.rb:49:in `with_current_arbre_element'
2015-08-25T22:32:04.539374+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/arbre-1.0.3/lib/arbre/element/builder_methods.rb:26:in `build_tag'
2015-08-25T22:32:04.539375+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/arbre-1.0.3/lib/arbre/element/builder_methods.rb:39:in `insert_tag'
2015-08-25T22:32:04.539376+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/arbre-1.0.3/lib/arbre/element/builder_methods.rb:14:in `div'
2015-08-25T22:32:04.539377+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/bundler/gems/activeadmin-1094bd945047/lib/active_admin/views/pages/base.rb:48:in `block in build_page'
2015-08-25T22:32:04.539378+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/arbre-1.0.3/lib/arbre/context.rb:92:in `with_current_arbre_element'
2015-08-25T22:32:04.539382+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/arbre-1.0.3/lib/arbre/element/builder_methods.rb:49:in `with_current_arbre_element'
2015-08-25T22:32:04.539383+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/bundler/gems/activeadmin-1094bd945047/lib/active_admin/views/pages/base.rb:47:in `build_page'
2015-08-25T22:32:04.539385+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/bundler/gems/activeadmin-1094bd945047/lib/active_admin/views/pages/base.rb:10:in `build'
2015-08-25T22:32:04.539386+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/arbre-1.0.3/lib/arbre/element/builder_methods.rb:30:in `block in build_tag'
2015-08-25T22:32:04.539387+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/arbre-1.0.3/lib/arbre/context.rb:92:in `with_current_arbre_element'
2015-08-25T22:32:04.539388+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/arbre-1.0.3/lib/arbre/element/builder_methods.rb:26:in `build_tag'
2015-08-25T22:32:04.539389+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/arbre-1.0.3/lib/arbre/element/builder_methods.rb:39:in `insert_tag'
2015-08-25T22:32:04.539391+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/bundler/gems/activeadmin-1094bd945047/app/views/active_admin/resource/index.html.arb:2:in `block in _vendor_bundle_ruby_______bundler_gems_activeadmin_____bd_______app_views_active_admin_resource_index_html_arb__4538198403734908610_69989556439860'
2015-08-25T22:32:04.539392+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/arbre-1.0.3/lib/arbre/context.rb:45:in `instance_eval'
2015-08-25T22:32:04.539393+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/arbre-1.0.3/lib/arbre/context.rb:45:in `initialize'
2015-08-25T22:32:04.539394+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/bundler/gems/activeadmin-1094bd945047/app/views/active_admin/resource/index.html.arb:1:in `new'
2015-08-25T22:32:04.539395+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/bundler/gems/activeadmin-1094bd945047/app/views/active_admin/resource/index.html.arb:1:in `_vendor_bundle_ruby_______bundler_gems_activeadmin_____bd_______app_views_active_admin_resource_index_html_arb__4538198403734908610_69989556439860'
2015-08-25T22:32:04.539397+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/actionview-4.2.3/lib/action_view/template.rb:145:in `block in render'
2015-08-25T22:32:04.539398+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.3/lib/active_support/notifications.rb:166:in `instrument'
2015-08-25T22:32:04.539399+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/actionview-4.2.3/lib/action_view/template.rb:333:in `instrument'
2015-08-25T22:32:04.539400+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/actionview-4.2.3/lib/action_view/template.rb:143:in `render'
2015-08-25T22:32:04.539401+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/actionview-4.2.3/lib/action_view/renderer/template_renderer.rb:54:in `block (2 levels) in render_template'
2015-08-25T22:32:04.539403+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/actionview-4.2.3/lib/action_view/renderer/abstract_renderer.rb:39:in `block in instrument'
2015-08-25T22:32:04.539404+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.3/lib/active_support/notifications.rb:164:in `block in instrument'
2015-08-25T22:32:04.539405+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.3/lib/active_support/notifications/instrumenter.rb:20:in `instrument'
2015-08-25T22:32:04.539406+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.3/lib/active_support/notifications.rb:164:in `instrument'
2015-08-25T22:32:04.539407+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/actionview-4.2.3/lib/action_view/renderer/abstract_renderer.rb:39:in `instrument'
2015-08-25T22:32:04.539408+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/actionview-4.2.3/lib/action_view/renderer/template_renderer.rb:53:in `block in render_template'
2015-08-25T22:32:04.539409+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/actionview-4.2.3/lib/action_view/renderer/template_renderer.rb:61:in `render_with_layout'
2015-08-25T22:32:04.539411+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/actionview-4.2.3/lib/action_view/renderer/template_renderer.rb:52:in `render_template'
2015-08-25T22:32:04.539412+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/actionview-4.2.3/lib/action_view/renderer/template_renderer.rb:14:in `render'
2015-08-25T22:32:04.539413+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/actionview-4.2.3/lib/action_view/renderer/renderer.rb:42:in `render_template'
2015-08-25T22:32:04.539414+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/actionview-4.2.3/lib/action_view/renderer/renderer.rb:23:in `render'
2015-08-25T22:32:04.539415+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/actionview-4.2.3/lib/action_view/rendering.rb:100:in `_render_template'
2015-08-25T22:32:04.539416+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/actionpack-4.2.3/lib/action_controller/metal/streaming.rb:217:in `_render_template'
2015-08-25T22:32:04.539417+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/actionview-4.2.3/lib/action_view/rendering.rb:83:in `render_to_body'
2015-08-25T22:32:04.539418+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/actionpack-4.2.3/lib/action_controller/metal/rendering.rb:32:in `render_to_body'
2015-08-25T22:32:04.539419+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/actionpack-4.2.3/lib/action_controller/metal/renderers.rb:37:in `render_to_body'
2015-08-25T22:32:04.539420+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/actionpack-4.2.3/lib/abstract_controller/rendering.rb:25:in `render'
2015-08-25T22:32:04.539423+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/actionpack-4.2.3/lib/action_controller/metal/rendering.rb:16:in `render'
2015-08-25T22:32:04.539424+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/actionpack-4.2.3/lib/action_controller/metal/instrumentation.rb:44:in `block (2 levels) in render'
2015-08-25T22:32:04.539425+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.3/lib/active_support/core_ext/benchmark.rb:12:in `block in ms'
2015-08-25T22:32:04.539427+00:00 app[web.1]: vendor/ruby-2.2.1/lib/ruby/2.2.0/benchmark.rb:303:in `realtime'
2015-08-25T22:32:04.539428+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.3/lib/active_support/core_ext/benchmark.rb:12:in `ms'
2015-08-25T22:32:04.539429+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/actionpack-4.2.3/lib/action_controller/metal/instrumentation.rb:44:in `block in render'
2015-08-25T22:32:04.539430+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/actionpack-4.2.3/lib/action_controller/metal/instrumentation.rb:87:in `cleanup_view_runtime'
2015-08-25T22:32:04.539431+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/activerecord-4.2.3/lib/active_record/railties/controller_runtime.rb:25:in `cleanup_view_runtime'
2015-08-25T22:32:04.539432+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/actionpack-4.2.3/lib/action_controller/metal/instrumentation.rb:43:in `render'
2015-08-25T22:32:04.539433+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/actionpack-4.2.3/lib/action_controller/metal/implicit_render.rb:10:in `default_render'
2015-08-25T22:32:04.539434+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/responders-2.1.0/lib/action_controller/responder.rb:236:in `default_render'
2015-08-25T22:32:04.539435+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/responders-2.1.0/lib/action_controller/responder.rb:170:in `to_html'
2015-08-25T22:32:04.539436+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/responders-2.1.0/lib/responders/flash_responder.rb:107:in `to_html'
2015-08-25T22:32:04.539438+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/responders-2.1.0/lib/action_controller/responder.rb:163:in `respond'
2015-08-25T22:32:04.539439+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/responders-2.1.0/lib/action_controller/responder.rb:156:in `call'
2015-08-25T22:32:04.539440+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/responders-2.1.0/lib/action_controller/respond_with.rb:203:in `respond_with'
2015-08-25T22:32:04.539441+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/inherited_resources-1.6.0/lib/inherited_resources/actions.rb:7:in `index'
2015-08-25T22:32:04.539442+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/bundler/gems/activeadmin-1094bd945047/lib/active_admin/resource_controller/streaming.rb:12:in `index'
2015-08-25T22:32:04.539443+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/actionpack-4.2.3/lib/action_controller/metal/implicit_render.rb:4:in `send_action'
2015-08-25T22:32:04.539445+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/actionpack-4.2.3/lib/abstract_controller/base.rb:198:in `process_action'
2015-08-25T22:32:04.539446+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/actionpack-4.2.3/lib/action_controller/metal/rendering.rb:10:in `process_action'
2015-08-25T22:32:04.539447+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/actionpack-4.2.3/lib/abstract_controller/callbacks.rb:20:in `block in process_action'
2015-08-25T22:32:04.539448+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.3/lib/active_support/callbacks.rb:115:in `call'
2015-08-25T22:32:04.539449+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.3/lib/active_support/callbacks.rb:115:in `call'
2015-08-25T22:32:04.539450+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.3/lib/active_support/callbacks.rb:553:in `block (2 levels) in compile'
2015-08-25T22:32:04.539452+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.3/lib/active_support/callbacks.rb:503:in `call'
2015-08-25T22:32:04.539453+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.3/lib/active_support/callbacks.rb:503:in `call'
2015-08-25T22:32:04.539454+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.3/lib/active_support/callbacks.rb:88:in `run_callbacks'
2015-08-25T22:32:04.539455+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/actionpack-4.2.3/lib/abstract_controller/callbacks.rb:19:in `process_action'
2015-08-25T22:32:04.539456+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/actionpack-4.2.3/lib/action_controller/metal/rescue.rb:29:in `process_action'
2015-08-25T22:32:04.539458+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/actionpack-4.2.3/lib/action_controller/metal/instrumentation.rb:32:in `block in process_action'
2015-08-25T22:32:04.539459+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.3/lib/active_support/notifications.rb:164:in `block in instrument'
2015-08-25T22:32:04.539460+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.3/lib/active_support/notifications/instrumenter.rb:20:in `instrument'
2015-08-25T22:32:04.539461+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.3/lib/active_support/notifications.rb:164:in `instrument'
2015-08-25T22:32:04.539462+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/actionpack-4.2.3/lib/action_controller/metal/instrumentation.rb:30:in `process_action'
2015-08-25T22:32:04.539463+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/actionpack-4.2.3/lib/action_controller/metal/params_wrapper.rb:250:in `process_action'
2015-08-25T22:32:04.539466+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/activerecord-4.2.3/lib/active_record/railties/controller_runtime.rb:18:in `process_action'
2015-08-25T22:32:04.539468+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/actionpack-4.2.3/lib/abstract_controller/base.rb:137:in `process'
2015-08-25T22:32:04.539469+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/actionview-4.2.3/lib/action_view/rendering.rb:30:in `process'
2015-08-25T22:32:04.539470+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/actionpack-4.2.3/lib/action_controller/metal.rb:196:in `dispatch'
2015-08-25T22:32:04.539471+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/actionpack-4.2.3/lib/action_controller/metal/rack_delegation.rb:13:in `dispatch'
2015-08-25T22:32:04.539472+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/actionpack-4.2.3/lib/action_controller/metal.rb:237:in `block in action'
2015-08-25T22:32:04.539473+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/actionpack-4.2.3/lib/action_dispatch/routing/route_set.rb:76:in `call'
2015-08-25T22:32:04.539474+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/actionpack-4.2.3/lib/action_dispatch/routing/route_set.rb:76:in `dispatch'
2015-08-25T22:32:04.539475+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/actionpack-4.2.3/lib/action_dispatch/routing/route_set.rb:45:in `serve'
2015-08-25T22:32:04.539476+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/actionpack-4.2.3/lib/action_dispatch/journey/router.rb:43:in `block in serve'
2015-08-25T22:32:04.539477+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/actionpack-4.2.3/lib/action_dispatch/journey/router.rb:30:in `each'
2015-08-25T22:32:04.539478+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/actionpack-4.2.3/lib/action_dispatch/journey/router.rb:30:in `serve'
2015-08-25T22:32:04.539479+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/actionpack-4.2.3/lib/action_dispatch/routing/route_set.rb:821:in `call'
2015-08-25T22:32:04.539481+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/warden-1.2.3/lib/warden/manager.rb:35:in `block in call'
2015-08-25T22:32:04.539482+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/warden-1.2.3/lib/warden/manager.rb:34:in `catch'
2015-08-25T22:32:04.539483+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/warden-1.2.3/lib/warden/manager.rb:34:in `call'
2015-08-25T22:32:04.539484+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/rack-1.6.4/lib/rack/etag.rb:24:in `call'
2015-08-25T22:32:04.539485+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/rack-1.6.4/lib/rack/conditionalget.rb:25:in `call'
2015-08-25T22:32:04.539486+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/rack-1.6.4/lib/rack/head.rb:13:in `call'
2015-08-25T22:32:04.539487+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/actionpack-4.2.3/lib/action_dispatch/middleware/params_parser.rb:27:in `call'
2015-08-25T22:32:04.539488+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/actionpack-4.2.3/lib/action_dispatch/middleware/flash.rb:260:in `call'
2015-08-25T22:32:04.539489+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/rack-1.6.4/lib/rack/session/abstract/id.rb:225:in `context'
2015-08-25T22:32:04.539490+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/rack-1.6.4/lib/rack/session/abstract/id.rb:220:in `call'
2015-08-25T22:32:04.539491+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/actionpack-4.2.3/lib/action_dispatch/middleware/cookies.rb:560:in `call'
2015-08-25T22:32:04.539492+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/activerecord-4.2.3/lib/active_record/query_cache.rb:36:in `call'
2015-08-25T22:32:04.539494+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/activerecord-4.2.3/lib/active_record/connection_adapters/abstract/connection_pool.rb:653:in `call'
2015-08-25T22:32:04.539495+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/actionpack-4.2.3/lib/action_dispatch/middleware/callbacks.rb:29:in `block in call'
2015-08-25T22:32:04.539496+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.3/lib/active_support/callbacks.rb:84:in `run_callbacks'
2015-08-25T22:32:04.539497+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/actionpack-4.2.3/lib/action_dispatch/middleware/callbacks.rb:27:in `call'
2015-08-25T22:32:04.539498+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/actionpack-4.2.3/lib/action_dispatch/middleware/remote_ip.rb:78:in `call'
2015-08-25T22:32:04.539499+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/actionpack-4.2.3/lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call'
2015-08-25T22:32:04.539500+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/actionpack-4.2.3/lib/action_dispatch/middleware/show_exceptions.rb:30:in `call'
2015-08-25T22:32:04.539501+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/railties-4.2.3/lib/rails/rack/logger.rb:38:in `call_app'
2015-08-25T22:32:04.539502+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/railties-4.2.3/lib/rails/rack/logger.rb:20:in `block in call'
2015-08-25T22:32:04.539503+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.3/lib/active_support/tagged_logging.rb:68:in `block in tagged'
2015-08-25T22:32:04.539504+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.3/lib/active_support/tagged_logging.rb:26:in `tagged'
2015-08-25T22:32:04.539506+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.3/lib/active_support/tagged_logging.rb:68:in `tagged'
2015-08-25T22:32:04.539507+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/railties-4.2.3/lib/rails/rack/logger.rb:20:in `call'
2015-08-25T22:32:04.539508+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/actionpack-4.2.3/lib/action_dispatch/middleware/request_id.rb:21:in `call'
2015-08-25T22:32:04.539509+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/rack-1.6.4/lib/rack/methodoverride.rb:22:in `call'
2015-08-25T22:32:04.539510+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/rack-1.6.4/lib/rack/runtime.rb:18:in `call'
2015-08-25T22:32:04.539513+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.3/lib/active_support/cache/strategy/local_cache_middleware.rb:28:in `call'
2015-08-25T22:32:04.539514+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/actionpack-4.2.3/lib/action_dispatch/middleware/static.rb:116:in `call'
2015-08-25T22:32:04.539516+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/rack-1.6.4/lib/rack/sendfile.rb:113:in `call'
2015-08-25T22:32:04.539517+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/actionpack-4.2.3/lib/action_dispatch/middleware/ssl.rb:24:in `call'
2015-08-25T22:32:04.539518+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/railties-4.2.3/lib/rails/engine.rb:518:in `call'
2015-08-25T22:32:04.539519+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/railties-4.2.3/lib/rails/application.rb:165:in `call'
2015-08-25T22:32:04.539520+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/thin-1.6.3/lib/thin/connection.rb:86:in `block in pre_process'
2015-08-25T22:32:04.539521+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/thin-1.6.3/lib/thin/connection.rb:84:in `catch'
2015-08-25T22:32:04.539522+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/thin-1.6.3/lib/thin/connection.rb:84:in `pre_process'
2015-08-25T22:32:04.539523+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/thin-1.6.3/lib/thin/connection.rb:53:in `process'
2015-08-25T22:32:04.539525+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/thin-1.6.3/lib/thin/connection.rb:39:in `receive_data'
2015-08-25T22:32:04.539526+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/eventmachine-1.0.7/lib/eventmachine.rb:187:in `run_machine'
2015-08-25T22:32:04.539527+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/eventmachine-1.0.7/lib/eventmachine.rb:187:in `run'
2015-08-25T22:32:04.539528+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/thin-1.6.3/lib/thin/backends/base.rb:73:in `start'
2015-08-25T22:32:04.539529+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/thin-1.6.3/lib/thin/server.rb:162:in `start'
2015-08-25T22:32:04.539530+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/thin-1.6.3/lib/thin/controllers/controller.rb:87:in `start'
2015-08-25T22:32:04.539531+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/thin-1.6.3/lib/thin/runner.rb:200:in `run_command'
2015-08-25T22:32:04.539532+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/thin-1.6.3/lib/thin/runner.rb:156:in `run!'
2015-08-25T22:32:04.539533+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/thin-1.6.3/bin/thin:6:in `<top (required)>'
2015-08-25T22:32:04.539534+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/bin/thin:23:in `load'
2015-08-25T22:32:04.539536+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/bin/thin:23:in `<main>'
2015-08-25T22:32:04.539537+00:00 app[web.1]:
2015-08-25T22:32:04.539538+00:00 app[web.1]:
2015-08-25T22:32:05.015328+00:00 heroku[router]: at=info method=GET path="/favicon.ico" host=venuevortex-dev.herokuapp.com request_id=44dbea79-b4ea-4e1f-aaf5-177c325f2b4a fwd="188.237.135.33" dyno=web.1 connect=0ms service=2ms status=200 bytes=1355
Any help would be great! Happy to provide additional code if needed.
About this issue
- Original URL
- State: closed
- Created 9 years ago
- Comments: 27 (11 by maintainers)
I appear to be in an identical situation to @yuzhay. ActiveAdmin works as expected locally, but in production it’s not possible to render any of the views associated with a model (i.e. AdminUser or User).
The initial error I saw was something along the lines of
format => csv not supported
. I disabled download links in the active_admin.rb initializer, and then saw the errorActionView::Template::Error (arguments passed to url_for can't be handled. Please require routes or provide your own implementation)
.I searched that error and found this stackoverflow post which recommended that I find
include Rails.application.routes.url_helpers
in my code and delete it as it causes a conflict.I found a lib that was including the url_helpers in that way. I deleted that line and ActiveAdmin started working on Heroku. I’ll need to refactor that lib so that it has access to routes without calling url_helpers.
if you still need the
routes.helpers
, theinclude Rails.application.routes.url_helpers
should be done inside theclass
where that needs it like thisHope this will help !
it brakes when we include helpers in serializers to use
url_for
:fixed with
problem fixed.