-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement invitation show view and remove old accept/reject views
- Loading branch information
Showing
4 changed files
with
16 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<h1>Accept or reject the invitation!</h1> | ||
|
||
<p>Accept confirmation button</p> | ||
|
||
<p>or they can update their funding.yml and we'll check it again</p> | ||
|
||
<p>also an option to reject</p> | ||
|
||
<p>if it's been accepted/rejected already then show a message</p> |