Kitten pictures for Sinatra not_found pages.
Ruby
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
lib/sinatra
spec
.gitignore
.travis.yml
Gemfile
LICENSE.txt
README.md
Rakefile
sinatra-kittens.gemspec

README.md

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.