initial commit of the hackiness from Railscamp