diff --git a/app/controllers/invitations_controller.rb b/app/controllers/invitations_controller.rb index c78a7c1..0ff0e23 100644 --- a/app/controllers/invitations_controller.rb +++ b/app/controllers/invitations_controller.rb @@ -1,13 +1,18 @@ class InvitationsController < ApplicationController + + def show + @invitation = Invitation.find_by_token(params[:token]) + end + def accept # find invitation by token # invitation.accept - # redirect to back to self with a flash message + # redirect to invitation.html_url end def reject # find invitation by token # invitation.reject - # redirect back to self with a flash message + # redirect back invitation.html_url end end \ No newline at end of file diff --git a/app/views/invitations/accept.html.erb b/app/views/invitations/accept.html.erb deleted file mode 100644 index 3a39777..0000000 --- a/app/views/invitations/accept.html.erb +++ /dev/null @@ -1,7 +0,0 @@ -

Accept invitation!

- -

Accept confirmation button

- -

if it's been accepted already then show a message

- -

also an option to reject

\ No newline at end of file diff --git a/app/views/invitations/reject.html.erb b/app/views/invitations/reject.html.erb deleted file mode 100644 index d7b2afd..0000000 --- a/app/views/invitations/reject.html.erb +++ /dev/null @@ -1,7 +0,0 @@ -

Reject invitation!

- -

Reject confirmation button

- -

if it's been rejected already then show a message

- -

also an option to accept instead

\ No newline at end of file diff --git a/app/views/invitations/show.html.erb b/app/views/invitations/show.html.erb new file mode 100644 index 0000000..10b938a --- /dev/null +++ b/app/views/invitations/show.html.erb @@ -0,0 +1,9 @@ +

Accept or reject the invitation!

+ +

Accept confirmation button

+ +

or they can update their funding.yml and we'll check it again

+ +

also an option to reject

+ +

if it's been accepted/rejected already then show a message

\ No newline at end of file