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