This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Install Ruby 2.0 | |
apt-get -y update | |
apt-get -y -m install build-essential zlib1g-dev libssl-dev libreadline-gplv2-dev libyaml-dev libxslt1-dev libxml2-dev libcurl4-openssl-dev libffi-dev libgdbm-dev libncurses5-dev | |
cd /tmp | |
wget http://ftp.ruby-lang.org/pub/ruby/ruby-2.1.0.tar.gz | |
tar xzvf ruby-2.1.0.tar.gz | |
cd ruby-2.1.0/ | |
./configure --prefix=/usr/local | |
make |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Rails::Application.routes.draw do | |
constraints :subdomain => 'admin' do | |
namespace(:admin, :path => '/') do | |
resources :books | |
end | |
end | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
As of version 1.1.2, Propane will load and execute the contents of | |
~Library/Application Support/Propane/unsupported/caveatPatchor.js | |
immediately following the execution of its own enhancer.js file. | |
You can use this mechanism to add your own customizations to Campfire | |
in Propane. | |
Below you'll find two customization examples. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
App::import('Core', 'Controller'); | |
App::import('Component', 'Session'); | |
$Controller = new Controller(); | |
$Session = new SessionComponent(); | |
$Session->startup($Controller); | |
$Session->read('Auth.User'); |