gem install rails
rails new my_app -T
| # Leopard Development Environment (from clean installation) | |
| # Replace USERNAME with your OS X short name. | |
| # Replace PASSWORD with your MySQL root password. | |
| # Install XCode Tools | |
| # Install MacPorts | |
| # Install Textmate | |
| # Generate an SSH key | |
| ssh-keygen |
| # Rails template for Rails 2.3. Work in progress. | |
| # By Henrik Nyh (http://henrik.nyh.se) 2009-03-29. Public domain. | |
| # Usage: rails myapp -m http://gist.github.com/87341.txt | |
| META_AUTHOR = "Henrik Nyh (http://henrik.nyh.se)" | |
| JQUERY_VERSION = "1.3.2" | |
| APP_NAME = File.basename(Dir.pwd) | |
| git :init |
| # courtesy of http://heypanda.com/ | |
| class TryProxy | |
| def initialize(receiving_object) | |
| @receiving_object = receiving_object | |
| end | |
| def method_missing(meth, *args, &block) | |
| @receiving_object.nil? ? nil : @receiving_object.send(meth, *args, &block) rescue nil | |
| end |