Exception: Cybertrain::RecordNotFound
- Inherits:
-
StandardError
- Object
- StandardError
- Cybertrain::RecordNotFound
- Defined in:
- cybertrain/model.rb
Overview
Raised by find and Model#reload when no row has the id. Map it to a
404 with rescue_from Cybertrain::RecordNotFound, with: :record_not_found
in ApplicationController (the generated app does).