diff --git a/app/controllers/invitations_controller.rb b/app/controllers/invitations_controller.rb index 7bf01c8..4e476a8 100644 --- a/app/controllers/invitations_controller.rb +++ b/app/controllers/invitations_controller.rb @@ -14,7 +14,7 @@ class InvitationsController < ApplicationController start_new_session_for @user redirect_to root_path, notice: "Your account has been set up successfully. Welcome!" else - redirect_to invite_path(params[:token]), alert: "Passwords did not match." + redirect_to invitation_path(params[:token]), alert: "Passwords did not match." end end diff --git a/app/views/invitations/show.html.erb b/app/views/invitations/show.html.erb index 70edaf4..63af659 100644 --- a/app/views/invitations/show.html.erb +++ b/app/views/invitations/show.html.erb @@ -6,7 +6,7 @@
You've been invited to join Clinch. Please create your password to complete your account setup.
- <%= form_with url: invite_path(params[:token]), method: :put, class: "contents" do |form| %> + <%= form_with url: invitation_path(params[:token]), method: :put, class: "contents" do |form| %>