Skip to content

Instantly share code, notes, and snippets.

@n8
Created October 30, 2018 14:29
Show Gist options
  • Save n8/1f61cbd96ee3c9e368519261d8469aa0 to your computer and use it in GitHub Desktop.
Save n8/1f61cbd96ee3c9e368519261d8469aa0 to your computer and use it in GitHub Desktop.
$.ajax({
url: "/selected_answer",
type: "POST",
dataType: "json",
data: {user_id: current_user.id, question_id: question_id}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment