Skip to content

Instantly share code, notes, and snippets.

@olivernn
Created April 27, 2010 09:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save olivernn/380568 to your computer and use it in GitHub Desktop.
Save olivernn/380568 to your computer and use it in GitHub Desktop.
require 'rubygems'
require 'rack'
require 'snippets'
require 'mongo'
require 'rackjson'
use Rack::JSON::Resource, :collections => [:notes], :db => Mongo::Connection.new.db("notes")
run lambda { |env| [404, {'Content-Length' => '9', 'Content-Type' => 'text/plain'}, "Not Found"] }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment