• Wincent
    Menu
  • Blog
  • Wiki
  • Snippets
  • Tags
  • Search

Special case record_not_found (wincent.dev, d35ee64)

Created 2/8/2008, updated 3/12/2024
  • snippets

In the default case (when there is no override) the uri parameter will actually be an instance of ActiveRecord::RecordNotFound, so watch out for that and intercept it; letting it through causes an exception to be raised.

Signed-off-by: Greg Hurrell <greg@hurrell.net>

← First cut at wiki functionality (wincent.dev, b451c58)
Move login form into a partial (wincent.dev, 8c98144) →

All snippets

Site
  • About
  • Blog
  • Wiki
  • Snippets
  • Tags
  • Search
External
  • GitHub
  • Twitter
  • YouTube
  • Facebook
  • LinkedIn
Colophon

Made by Greg Hurrell with Rust (with help from Git and Neovim).