Skip to content

Instantly share code, notes, and snippets.

@olivernn olivernn/config.ru
Created Apr 27, 2010

Embed
What would you like to do?
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
You can’t perform that action at this time.