sinatra-kittens Gem Version

Providing kitten not_found pages for Sinatra using placekitten.

Example application here.

Requirements

  • Ruby >= 1.8.7
  • Sinatra >= 1.0

Installation

Using Bundler

Add it to your Gemfile:

gem 'sinatra-kittens'

Install it:

$ bundle install

As a Gem

$ gem install sinatra-kittens

Usage

Require the Gem and register the Kittens Module:

require 'sinatra/kittens'

class Application < Sinatra::Base
  configure do
    register Sinatra::Kittens
  end
end

Now, when hitting a page Sinatra does not have a route for, a Kitten will appear.