Skip to content

Commit

Permalink
Remove extra CSRF hidden input tag from demo
Browse files Browse the repository at this point in the history
Forme automatically adds a CSRF hidden input when it detects you're
using rack_csrf.
  • Loading branch information
janko committed May 5, 2018
1 parent a486cd3 commit 376c31c
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion demo/views/albums/_form.erb
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<% form album, { action: form_action, method: "post", enctype: "multipart/form-data" }, labeler: :explicit do |f| %>
<input type="hidden" name="_method" value="<%= form_method %>" \> <%# needed for PUT and DELETE requests %>
<%= csrf_tag %>

<div class="form-group">
<%= f.input :name %>
Expand Down

0 comments on commit 376c31c

Please sign in to comment.