Skip to content

Instantly share code, notes, and snippets.

@hashrocketeer
Created August 12, 2013 20:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save hashrocketeer/6214697 to your computer and use it in GitHub Desktop.
Save hashrocketeer/6214697 to your computer and use it in GitHub Desktop.
# $ rails new <rails_app_name> -m base_app.rb -S -T -d postgresql
# Install gems
gem "haml-rails"
gem "decent_exposure"
gem_group :development do
gem "better_errors"
end
gem_group :development, :test do
gem "database_cleaner"
gem "fabrication"
gem "rspec-rails"
gem "cucumber-rails"
gem "ffaker"
gem "pry-rails"
end
run "bundle"
file '.ruby-version', <<-CODE
2.0.0-p247
CODE
# Create .rspec defaults
file '.rspec', <<-CODE
--color
CODE
# Create database
rake "db:create:all"
rake "db:migrate"
# Run the Rails Generator on whatever
generate "rspec:install"
generate "cucumber:install"
generate "fabrication:cucumber_steps"
# Clean everything up that we don't need before we check-in
remove_file 'public/index.html'
git :init
git :add => "."
git :commit => "-a -m 'Initial'"
@shaneriley
Copy link

Last time I created a Rails app, I didn't get a public/index.html file. It's dynamically created by Rails::WelcomeController. If you're on an older version that still spits this out, though, you'll also want to include remove_file 'app/assets/images/rails.png'

You're also missing SASS and jQuery-rails.

@rondale-sc
Copy link

Thanks @shaneriley. I'm going to adjust this soon. ^_^

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment