Otherwise we get a AuthenticityToken exception. I was nor able to write a test to verify this change.
7 lines
415 B
Plaintext
7 lines
415 B
Plaintext
<%= 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") %>
|
|
<%= f.button text, options %>
|
|
<% end %>
|