Skip to content

Instantly share code, notes, and snippets.

@jmorton
jmorton / gist:983379
Created May 20, 2011 17:34 — forked from dhh/gist:981520
bulk api
# Bulk API design
#
# resources :posts
class PostsController < ApplicationController
before_filter :separate_bulk_ids
# GET /posts/1
# params[:id] => 1
# params[:ids] => [ 1 ]
#! /bin/sh
### BEGIN INIT INFO
# Provides: mongodb
# Required-Start: $all
# Required-Stop: $all
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: starts the mongodb data-store
# Description: starts mongodb using start-stop-daemon