ActiveRecord::RecordNotFound in CouponsController#show

Couldn't find Coupon with 'id'=162

Extracted source (around line #90):
88
89
90
91
92
93
              
# Use callbacks to share common setup or constraints between actions.
def set_coupon
@coupon = Coupon.friendly.find(params[:id])
end
# Never trust parameters from the scary internet, only allow the white list through.

Rails.root: /home/deploy/motilla_app/releases/20230509225900

Application Trace | Framework Trace | Full Trace

Request

Parameters:

{"id"=>"162"}

Response

Headers:

None