Skip to content

Instantly share code, notes, and snippets.

@toland
Created October 23, 2009 14:49
Show Gist options
  • Save toland/216953 to your computer and use it in GitHub Desktop.
Save toland/216953 to your computer and use it in GitHub Desktop.
My rails template
# Remove unnecessary Rails files
run 'rm README'
run 'rm public/index.html'
run 'rm public/favicon.ico'
run 'rm public/images/rails.png'
# Copy database.yml
run 'cp config/database.yml config/database.yml.example'
gem 'thoughtbot-factory_girl', :lib => 'factory_girl', :source => 'http://gems.github.com'
gem 'mislav-will_paginate', :lib => 'will_paginate', :source => 'http://gems.github.com'
gem 'erubis'
gem 'cucumber'
gem 'webrat'
gem 'rspec'
gem 'rspec-rails'
# Run rspec generator
generate("rspec")
run "curl -L http://jqueryjs.googlecode.com/files/jquery-1.3.2.min.js > public/javascripts/jquery.js"
run "touch tmp/.gitignore log/.gitignore vendor/.gitignore"
# Create .gitignore file
file '.gitignore', <<-FILE
.DS_Store
log/*.log
tmp/**/*
config/database.yml
db/*.sqlite3
*.tmproj
FILE
# Set up git repository
git :init
git :add => '.'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment