Skip to content

Commit 540f82b

Browse files
authored
Merge pull request #6624 from rubyforgood/fix-invitation-token-form-submission
Fix: Add local: true to invitation form to prevent blank token error
2 parents 37d9985 + 737a224 commit 540f82b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/views/devise/invitations/edit.html.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<div class="password-box px-4 pb-3">
22
<h2 class="my-3">Send invitation</h2>
33

4-
<%= form_with(model: resource, as: resource_name, url: invitation_path(resource_name), html: {method: :put}) do |f| %>
4+
<%= form_with(model: resource, as: resource_name, url: invitation_path(resource_name), local: true, html: {method: :put}) do |f| %>
55
<%= render "/shared/error_messages", resource: resource %>
66
<%= f.hidden_field :invitation_token, readonly: true %>
77

0 commit comments

Comments
 (0)