0.0
No commit activity in last 3 years
No release in over 3 years
A Rack middleware for simple 404 and 500 status handling. Just create your 404 and 500 html pages, use the middleware, and that's it.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
 Dependencies
 Project Readme

“On ne menace pas son enfant d’une Ratatouille !!!” – French Super Nanny

Naughty Step¶ ↑

Well, Naughty Step is nothing ground-breaking. This is just a basic way of catching errors (Status 500) and pages not found (Status 404) and use related html pages you’ve written for that purpose. The middleware even has default values:

  • public/404.html

  • public/500.html

So a very simple example might be to require the Gem and then:

use ::Rack::NaughtyStep

Or if you want to declare your paths:

use ::Rack::NaughtyStep ‘/path/to/404/page.html’, ‘/path/to/500/page.html’ Here you go. Truth is that I’ve been naughty as well. I did not write a proper full example, neither a spec. Just because I was in a rush, but I’ll do it as soon as I can. Please don’t spank me.

© 2010 Mickael Riga - see MIT_LICENCE for details