From bcd0198bf14966b4731dd8522c5d950da15d3df9 Mon Sep 17 00:00:00 2001 From: Tim Felgentreff Date: Fri, 4 Feb 2011 10:19:31 +0100 Subject: [PATCH] fix url_for call --- lib/widget/controls/query_name.rb | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lib/widget/controls/query_name.rb b/lib/widget/controls/query_name.rb index 8ae0b14f46..d7bd709ec6 100644 --- a/lib/widget/controls/query_name.rb +++ b/lib/widget/controls/query_name.rb @@ -11,9 +11,7 @@ class Widget::Controls::QueryName < Widget::Base l(:button_rename) end options["data-is_public"] = @query.is_public - options["data-update-url"] = url_for(:action => "update", - :controller => @engine.name.underscore.pluralize, - :id => @query.id).html_safe + options["data-update-url"] = url_for(:action => "update", :id => @query.id).html_safe end content_tag(:span, name, :id => "query_saved_name") + icon end