ActiveRecord::RecordNotFound in Builder::PhotosController#show

Couldn't find PhotoModule with 'id'=683 [WHERE "page_modules"."page_id" = ? AND "page_modules"."modulable_type" = ?]

Extracted source (around line #21):
19
20
21
22
23
24
              
@page_data = YAML.load_file("#{Settings.sites.path}/config/themes/#{@theme.slug}.yml")
@layout = @page_data['layout']
@photo = @page.photo_modules.find(params[:photo_path].to_i)
@title = @photo.title
end

Rails.root: /app

Application Trace | Framework Trace | Full Trace

Request

Parameters:

{"path"=>"photos-ministry-events",
 "photo_path"=>"683"}

Response

Headers:

None