Skip to content

Commit

Permalink
Merge pull request #192 from AnkushMalik/csrf_bug
Browse files Browse the repository at this point in the history
Fix authenticity_token bug
  • Loading branch information
hennevogel authored Mar 7, 2018
2 parents 5c110cd + ba46151 commit 5881d61
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/views/markdown/preview.js.erb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
$('#preview-contents').html("<%=j raw @rendered %>");
$('#loading-spinner').addClass('hidden');
$('#preview-contents').removeClass('hidden');
$('input[name="authenticity_token"]').val('<%= form_authenticity_token %>');

0 comments on commit 5881d61

Please sign in to comment.