From 9fad73341e7d9b21860b25fe55d0f66e082bbfe6 Mon Sep 17 00:00:00 2001 From: nilsding Date: Mon, 10 Nov 2014 18:25:46 +0100 Subject: [PATCH] =?UTF-8?q?we=20want=20to=20make=20POST=20requests=20here?= =?UTF-8?q?=E2=80=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/assets/javascripts/application.js.erb.coffee | 1 + 1 file changed, 1 insertion(+) diff --git a/app/assets/javascripts/application.js.erb.coffee b/app/assets/javascripts/application.js.erb.coffee index 7f1e8024..909de2e9 100644 --- a/app/assets/javascripts/application.js.erb.coffee +++ b/app/assets/javascripts/application.js.erb.coffee @@ -21,6 +21,7 @@ $(document).on "click", "button[name=qb-ask]", -> true $.ajax url: '/ajax/ask' # TODO: find a way to use rake routes instead of hardcoding them here + type: 'POST' data: rcpt: $("input[name=qb-to]").val() question: $("textarea[name=qb-question]").val()