Skip to content

Commit 48f09bf

Browse files
iHiDclaude
andauthored
Handle RecordNotFound in ImagesController#solution to render 404 (#8351)
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 9354e2b commit 48f09bf

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

app/controllers/images_controller.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
class ImagesController < ApplicationController
22
skip_before_action :authenticate_user!
3+
rescue_from ActiveRecord::RecordNotFound, with: :render_404
34

45
layout 'images'
56

0 commit comments

Comments
 (0)