diff --git a/app/views/organisations/users.html.erb b/app/views/organisations/users.html.erb index e18ab39e5..dbf53b484 100644 --- a/app/views/organisations/users.html.erb +++ b/app/views/organisations/users.html.erb @@ -3,7 +3,7 @@ <%= "Users" %> <% end %> -<%= govuk_button_link_to "Invite user", users_invite_organisation_path(@organisation), html: { method: :get } %> +<%= govuk_button_link_to "Invite user", new_user_path, html: { method: :get } %> <%= govuk_table do |table| %> <%= table.head do |head| %> <%= head.row do |row| diff --git a/app/views/users/new.html.erb b/app/views/users/new.html.erb index df1c7b045..4aacdd6a9 100644 --- a/app/views/users/new.html.erb +++ b/app/views/users/new.html.erb @@ -5,7 +5,7 @@ ) %> <% end %> -<%= form_for(@resource, as: @resource_name, url: account_create_path(), html: { method: :post }) do |f| %> +<%= form_for(@resource, as: :user, html: { method: :post }) do |f| %>