ajax로 patch 요청 보내기
$('div#question_preview <some button selector>').click(function (event) {
$.ajax({
url: 'questions/' + question_id,
type: 'PATCH',
data: {status: 'some status'}
});
});
$('div#question_preview <some button selector>').click(function (event) {
$.ajax({
url: 'questions/' + question_id,
type: 'PATCH',
data: {status: 'some status'}
});
});