Last few CSRF fields
This commit is contained in:
parent
e19ded1362
commit
de62444eca
|
@ -26,5 +26,6 @@
|
|||
) %>
|
||||
</div>
|
||||
<%= hidden_field number => $roman_numeral, id => 'number' %>
|
||||
<%= csrf_field %>
|
||||
<button type="submit" class="form-button">Answer</button>
|
||||
</form>
|
||||
|
|
|
@ -55,6 +55,7 @@
|
|||
<%= check_box preview => 1, id => 'preview' %>
|
||||
<%= label_for preview => 'Preview' %>
|
||||
</div>
|
||||
<%= csrf_field %>
|
||||
<button type="submit" class="form-button">Post</button>
|
||||
</form>
|
||||
<%# Putting this first above the thread body (nested if, yucky sry) %>
|
||||
|
|
Loading…
Reference in a new issue