Skip to content
master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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.

About

Kitten pictures for Sinatra not_found pages.

Resources

License

Packages

No packages published

Languages