Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
A Mongoid extension for Sinatra.
Ruby
tree: db19e9173b

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
lib/sinatra
.gitignore
LICENSE
README.md
Rakefile
VERSION
sinatra-mongoid.gemspec

README.md

Sinatra Mongoid

A Mongoid extension for Sinatra.

Usage

Install the gem:

sudo gem install sinatra-mongoid

Create your Sinatra app:

require 'rubygems'
require 'sinatra'
require 'sinatra/mongoid'

set :mongo_db, 'job-board'

configure :production do
  set :mongo_host, 'db.mongohq.com'
end

Configuration

All Sinatra options you can set are:

:mongo_host
:mongo_db
:mongo_user
:mongo_password

Their default values are:

ENV['MONGO_HOST'] || 'localhost'
ENV['MONGO_DB']
ENV['MONGO_USER']
ENV['MONGO_PASSWORD']

Resources

Something went wrong with that request. Please try again.