From f1732af3e9ff3beacca29a4f8a7e9fb3ce063747 Mon Sep 17 00:00:00 2001 From: Chidi Ekuma Date: Sun, 10 Mar 2024 21:47:55 +0000 Subject: [PATCH] Fix form_with to form_for in schools/users/show.html.erb --- app/views/schools/users/show.html.erb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/views/schools/users/show.html.erb b/app/views/schools/users/show.html.erb index 3a0732582b..0b913ac834 100644 --- a/app/views/schools/users/show.html.erb +++ b/app/views/schools/users/show.html.erb @@ -3,7 +3,7 @@
- <%= form_with(model: @user_invite, url: schools_users_path, method: :post) do |f| %> + <%= form_for(@user_invite, url: schools_users_path, method: :post) do |f| %>
Add user

Check your answers

@@ -15,6 +15,7 @@
<%= @user_invite.firstname %> + <%= f.hidden_field :firstname, value: @user_invite.firstname %>
<%= link_to 'Change', new_schools_user_path(user_invite: @user_invite) %> @@ -27,6 +28,7 @@
<%= @user_invite.lastname %> + <%= f.hidden_field :lastname, value: @user_invite.lastname %>
<%= link_to 'Change', new_schools_user_path(user_invite: @user_invite) %> @@ -39,6 +41,7 @@
<%= @user_invite.email %> + <%= f.hidden_field :email, value: @user_invite.email %>
<%= link_to 'Change', new_schools_user_path(user_invite: @user_invite) %>