{"id":79,"hash":"b470237ff85b919f1d07aa98f92a06b7957b16a1c3b9f5fa37487fe0666f39f9","pattern":"ActiveRecord::RecordNotFound","full_message":"ActiveRecord::RecordNotFound (Couldn't find User with 'id'=42)","ecosystem":"rubygems","package_name":"rails","package_version":null,"solution":"`.find` raises when the id doesn't exist.\n1. For optional lookups use `.find_by(id: 42)` which returns nil.\n2. In controllers, let it propagate — Rails renders a 404 automatically via `rescue_from ActiveRecord::RecordNotFound`.\n3. To customize: `rescue_from ActiveRecord::RecordNotFound, with: :not_found`.","confidence":0.92,"source":"internal","source_url":null,"votes":17,"created_at":"2026-04-19T03:37:14.150167+00:00","updated_at":"2026-04-19T03:37:14.150167+00:00"}