diff --git a/lib/active_admin/reorderable/table_methods.rb b/lib/active_admin/reorderable/table_methods.rb index 5cb3a68..4f0515d 100644 --- a/lib/active_admin/reorderable/table_methods.rb +++ b/lib/active_admin/reorderable/table_methods.rb @@ -11,7 +11,7 @@ def reorder_column private def reorder_handle_for(resource) - url = url_for([:reorder, active_admin_namespace.name, resource]) + url = [active_admin_config.route_instance_path(resource), :reorder].join('/') span(reorder_handle_content, :class => 'reorder-handle', 'data-reorder-url' => url) end