Skip to content

Instantly share code, notes, and snippets.

@rds
rds / PoolsController.rb
Created January 31, 2012 16:48 — forked from smooki/PoolsController.rb
no association in params for create ...
class PoolsController < ApplicationController
def index
@event = Event.find params[:event_id]
@pools = @event.pools
end
def new
type = nil
type = params[:type] if ["date", "text"].include?params[:type]
#!/bin/bash
# Unattended REE/Passenger installation
# Source: http://weblog.brightlight-ict.nl/2008/12/unattended-passenger-ruby-enterprise-installation-on-ubuntu-8/
# 15/03/09 Updated to use latest r.e.e. and passenger 2.1 and rewrote bits thanks to the comments left on my blog. Thanks guys
if [ "$(whoami)" != "root" ]; then
echo "You need to be root to run this!"
exit 2
fi