Skip to content

Instantly share code, notes, and snippets.

View pablodgcatulo's full-sized avatar

Pablo Garcia pablodgcatulo

  • Mendoza, Argentina
View GitHub Profile
@pablodgcatulo
pablodgcatulo / common_setup_for_rails_proyects.md
Last active September 11, 2019 12:51
common setup for rails proyects
  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 :test:
    • gem 'rspec-rails' - user rspec in place of minitest (docs)