From ee3da51ad32b4c358f81b414294d30eee203cfce Mon Sep 17 00:00:00 2001 From: benni Date: Wed, 24 Oct 2012 12:19:53 +0200 Subject: [PATCH] Fixed bug in new stockit article form. --- app/views/stockit/new.html.haml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/stockit/new.html.haml b/app/views/stockit/new.html.haml index 560ae635..28177182 100644 --- a/app/views/stockit/new.html.haml +++ b/app/views/stockit/new.html.haml @@ -2,7 +2,7 @@ :javascript function fillNewStockArticle(text, li) { - new Ajax.Updater('stock_article_form', '/stockit/fill_new_stock_article_form', { + new Ajax.Updater('stock_article_form', '#{url_for(:controller => "stockit", :action => "fill_new_stock_article_form")}', { parameters: {article_id: li.id} }); }