Skip to content

Instantly share code, notes, and snippets.

#!/bin/sh
### BEGIN INIT INFO
# Provides: unicorn
# Required-Start: $remote_fs $syslog
# Required-Stop: $remote_fs $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Manage unicorn server
# Description: Start, stop, restart unicorn server for a specific application.
### END INIT INFO
resources :divisions, :only => [:show] do
resources :events, :only => [:show] do
resources :presentations, :only => [:show]
resource :presentations do
member do
post :rate
end
end
end
end