Skip to content

Instantly share code, notes, and snippets.

View calaway's full-sized avatar

Calaway calaway

View GitHub Profile
@calaway
calaway / prework.md
Last active June 27, 2016 04:46 — forked from mbburch/prework.md
Calaway's Turing pre-work Gist
@calaway
calaway / rails_setup.md
Last active March 4, 2017 03:04 — forked from ryanflach/rails_setup.md
Common setup for a new Rails project
  1. rails new <project_name> -d postgresql --skip-turbolinks --skip-spring -T
  • -d postgresql sets up the project to use PostgreSQL
  • --skip-turbolinks & --skip-spring creates a project that does not use turbolinks or spring
  • -T skips the creation of the test directory and use of Test::Unit
  1. In the Gemfile:
  • Available to all environments:
    • gem 'figaro' - store environment variables securely across your app (docs)
    • Uncomment gem 'bcrypt', '~> 3.1.7' if you will be hosting your own user accounts with passwords (docs)
  • Inside of group :development, :test:
  • gem 'rspec-rails', '~&gt; 3.5' - use rspec in place of minitest (docs)