-
-
Notifications
You must be signed in to change notification settings - Fork 483
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[#3316] Allow for editing volunteer notes #3345
[#3316] Allow for editing volunteer notes #3345
Conversation
d448115
to
cbfda05
Compare
def edit | ||
end |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it's not necessary, rails will search for the view based on the controller's name
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think rails does need the empty method, but there should be a test that fails if it is removed
volunteer = Volunteer.find(params[:volunteer_id]) | ||
volunteer.notes.create(note_params) | ||
redirect_to edit_volunteer_path(volunteer) | ||
@volunteer.notes.create(note_params) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We are missing an authorize
somewhere but that may be covered in a different ticket
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yay tests! :)
What github issue is this PR for, if any?
Resolves #3316
What changed, and why?
How will this affect user permissions?
How is this tested? (please write tests!) 💖💪
Screenshots please :)
Before editing the note:
Note edit page:
Updated note: