Last few CSRF fields

This commit is contained in:
swaggboi 2024-08-15 20:30:47 -04:00
parent e19ded1362
commit de62444eca
2 changed files with 2 additions and 0 deletions

View file

@ -26,5 +26,6 @@
) %>
</div>
<%= hidden_field number => $roman_numeral, id => 'number' %>
<%= csrf_field %>
<button type="submit" class="form-button">Answer</button>
</form>

View file

@ -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) %>