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()