Skip to content
This repository


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Resource Oriented Architecture (REST) for Sinatra and MongoMapper

Fetching latest commit…


Cannot retrieve the latest commit at this time

Octocat-spinner-32 .bundle
Octocat-spinner-32 examples
Octocat-spinner-32 lib
Octocat-spinner-32 notes minor: whitespace August 16, 2010
Octocat-spinner-32 spec
Octocat-spinner-32 tasks
Octocat-spinner-32 .document
Octocat-spinner-32 .gitignore Version 0.1 October 20, 2009
Octocat-spinner-32 Gemfile
Octocat-spinner-32 Gemfile.lock
Octocat-spinner-32 LICENSE
Octocat-spinner-32 README.mdown
Octocat-spinner-32 Rakefile
Octocat-spinner-32 VERSION
Octocat-spinner-32 sinatra_resource.gemspec


Want to build Web services in the Resource Oriented Architecture style? With resource_sinatra, success is all but guaranteed, provided that you are using a Sinatra + MongoMapper stack.


It might not be a bad idea to make sure you are running the latest RubyGems:

sudo gem update --system

You will need gemcutter if you don't have it already:

gem install gemcutter
gem tumble

I recommend a user-level install:

gem install resource_sinatra

Note: in general, beware of sudo gem install <project_name> -- it gives elevated privileges. Do you trust <project name>? Better to be safe and use a local install to ~/.gem.


For a basic example of what this looks like when integrated into a real-world Sinatra app, see /examples/datacatalog.


This code was extracted from the National Data Catalog, a project of the Sunlight Labs.

Something went wrong with that request. Please try again.