Christopher Warren’s Rails Templates
Twitter: @cdwarren
http://rubberbandwound.com
Rails 2.3 Templates
- Creates a Git repository on Dreamhost
- Sets up Capistrano to use the Git repository
- Creates a public controller
- Removes standard files like public.html, robots.txt, and favicon.ico
- Rakes db:create
- Installs plugins
- exception_notifier
- paperclip
- asset_packager
- lazy_developer
- annotate_models
- factory_girl
- authlogic
- Gems
- will_paginate
- redcloth
- shoulda
Instructions
rails my_app -m http://github.com/chriswarren/rails-templates/raw/master/base.rb
Or add the following to your ~/.bash_profile
function railsapp {
appname=$1
case $2 in
"local")
template="/Users/warre213/Workspace/rails-templates/base.rb";;
*)
template="http://github.com/chriswarren/rails-templates/raw/master/base.rb";;
esac
shift 2
rails $appname -m $template $@
}
and run
railsapp my_app
Optionally, you can pass “local” or “github” to specify the template to run
railsapp my_app github