Skip to content

Instantly share code, notes, and snippets.

View rupert-madden-abbott's full-sized avatar

Rupert Madden-Abbott rupert-madden-abbott

View GitHub Profile
@rupert-madden-abbott
rupert-madden-abbott / Gemfile
Created October 18, 2011 19:56
Rails App Builder
source 'http://rubygems.org'
gem 'rails', '3.1.1'
gem 'execjs'
gem 'therubyracer'
gem 'sqlite3'
gem 'haml-rails'
gem 'jquery-rails' # https://github.com/indirect/jquery-rails
gem 'simple_form' # rails generate simple_form:install
@rupert-madden-abbott
rupert-madden-abbott / gist:1135027
Created August 9, 2011 19:58
Ubuntu first time setup: Rails Development
# After you have finished, you will have the latest version of rvm, Ruby MRI, Passenger and Rails setup and ready to go
# Install dependencies for rvm, ruby, passenger
sudo apt-get install curl git-core libcurl4-openssl-dev build-essential bison openssl libreadline6 libreadline6-dev curl git-core zlib1g zlib1g-dev libssl-dev libyaml-dev libsqlite3-0 libsqlite3-dev sqlite3 libxml2-dev libxslt-dev autoconf libc6-dev ncurses-dev
# Optional: Install dependencies for capybara-webkit
sudo apt-get install libqt4-dev
# rvm http://beginrescueend.com/rvm/install/
bash < <(curl -s https://rvm.beginrescueend.com/install/rvm)
@eddorre
eddorre / Rails Migrations Post Merge Git Commit Hook
Created April 18, 2011 21:58
Rails Migrations Post Merge Git Commit Hook
Get notifications when there are migrations that need to be run in a Rails project:
https://img.skitch.com/20110418-c9y3ttap3tai7frc43f38qtb8e.jpg
In your Rails project edit the .git/config file to add the following:
[rails]
automigrate = false
automigrateforegroundcolor = yellow
automigratebackgroundcolor = black