Skip to content

Commit

Permalink
[EXP] Make AJAX settings work when javascript is disabled
Browse files Browse the repository at this point in the history
Otherwise we get a AuthenticityToken exception.

I was nor able to write a test to verify this change.
  • Loading branch information
Senen committed Jan 22, 2024
1 parent 010c641 commit 58fc81f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<%= form_for([:admin, feature], remote: remote?, html: { class: "featured-settings-form" }) do |f| %>
<%= form_for([:admin, feature], remote: remote?, authenticity_token: true, html: { class: "featured-settings-form" }) do |f| %>
<%= hidden_field_tag :tab, tab if tab %>
<%= f.hidden_field :describedby, id: dom_id(feature, :describedby), value: describedby if describedby %>
<%= f.hidden_field :value, id: dom_id(feature, :value), value: (enabled? ? "" : "active") %>
Expand Down

0 comments on commit 58fc81f

Please sign in to comment.