Skip to content

Instantly share code, notes, and snippets.

View leonmezu1's full-sized avatar

Leonardo Mezu leonmezu1

View GitHub Profile
@leonmezu1
leonmezu1 / rails_new_help_output.md
Created January 13, 2021 18:53 — forked from eliotsykes/rails_new_help_output.md
"rails new" options explained

Run rails new --help to view all of the options you can pass to rails new:

$ bin/rails new --help
Usage:
  rails new APP_PATH [options]

Options:
  -r, [--ruby=PATH]                                      # Path to the Ruby binary of your choice
                                                         # Default: /Users/eliot/.rbenv/versions/2.2.0/bin/ruby
@leonmezu1
leonmezu1 / gist:a9bd130b3619055c327d8909e4829fec
Created January 8, 2021 19:56 — forked from djberg96/gist:2966965
Trouble installing pg gem on Windows
# I've got a have_library call failing when I tried to install the pg gem
c:\Users\djberge\Downloads\Ruby>gem install pg -- --with-pg-dir="c:\Program Files (x86)\PostgreSQL\9.1"
Building native extensions. This could take a while...
ERROR: Error installing pg:
ERROR: Failed to build gem native extension.
c:/usr/bin/ruby.exe extconf.rb --with-pg-dir=c:\Program Files (x86)\PostgreSQL\9.1
checking for pg_config... yes