Exception: Cybertrain::RecordNotFound

Inherits:
StandardError
  • Object
show all
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).