Return a 404 response If @event is Not Found #5795
Labels
bug
always open for contribution
external contributors welcome
contribution is welcome!
good first issue
good first issues for anyone new to programming and new to the project.
In the events controller we lookup the requested event. However, since we are using
find_by
if the event is not found we simply try to load the view with a nil@event
which leads to the error belowHoneybadger: https://app.honeybadger.io/fault/66984/b5b494606dbf78f0e09c009ea5e1e627
Error:
In the event that an
@event
is not found we should return anot_found
status. ApplicationController has a handynot_found
method that you can use to do this. I think you will want to implement a solution similar to this one.The text was updated successfully, but these errors were encountered: