program that allows you access to the shell • The shell is a IDAC (In-Act-Out Console) • There are many shell programs, but primarily people use BASH and ZSH • The terminal is our window to the shell • The shell is our window to the operating system
command line • Most Ruby binaries are written in Ruby • Binaries (sometimes) take input ◦ Some inputs are called "arguments" or "args" ◦ Some inputs are called "flags" • Binaries run some code • Binaries (sometimes) return output ◦ Most binaries return "exit codes" ◦ Most binaries return some text output ◦ Others can make files
fits a common concept (libsqlite3, libopenssl) • Libraries in Ruby are called "gems" • Gems can be downloaded and installed with the `gem install` command • Gems are primarily hosted openly on http: //rubygems.org
com/mxcl/homebrew/wiki/installation • Open your Terminal • Follow the instructions • Run: `brew install git` • If you get a warning about XCode, go download it at the link
to: https://github. com/robbyrussell/oh-my-zsh#readme • Open your Terminal • Follow the instructions • Add these plugins to the `.zshrc`: ◦ git ◦ gem ◦ rvm ◦ brew ◦ bundler ◦ history-substring-search • Reopen the terminal
Run `rvm install --default ruby-1.9.3` • Run `rvm install rbx-2.0.0pre` • Check the version of ruby • Setup an alias for mri with: `rvm alias create mri ruby-1.9.3` • Setup an alias for rbx with: `rvm alias create rbx rbx-2.0.0pre • Switch to Rubinius and check that version with: `rvm rbx` • Switch back to mri with: `rvm mri`
helps you handle all your gems • While in mri use `gem install bundler --pre` • While in mri use `gem install rails` • While in rbx install bundler and rails • Switch back to mri
that handles the organization of folders (or dirs) and files • While in the terminal run: `l` • These are a list of the files and folders in the current directory • The file path is the path of folders that lead to your current "location" • Changing directories is done with the `cd` command • The ~ symbol is "home" directory
folder in your home directory • Go into that directory • Run the rails command without arguments to get the help • Run: `rails new fantastory --skip-bundle -G - O -T` • Run the tree command • Open your editor • Add the project directory