Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
# $ 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"
gem_group :development, :test do
gem "database_cleaner"
gem "fabrication"
gem "rspec-rails"
gem "cucumber-rails"
gem "ffaker"
gem "pry-rails"
run "bundle"
file '.ruby-version', <<-CODE
# Create .rspec defaults
file '.rspec', <<-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'"
Copy link

shaneriley commented Aug 13, 2013

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.

Copy link

rondale-sc commented Aug 24, 2013

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