Sinatra

Ruby

  • # Check your Ruby version
  • ruby --version

The easiest way to install Ruby on OS X (Mike, you have to follow the link) is to use the official installer from ruby-lang.org. You can also use Homebrew if you prefer.

gem install bundler

Nice

take ruby-app

touch app.rb

Swing onto the terminal floor

Now take and touch your partner

bundle init

This creates your Gemfile and lock file

#Gemfile

source 'https://rubygems.org'

gem "sinatra"

atom .

bundle install

(back in the terminal)

#app.rb

require 'sinatra'​

 

get ('/') do
    'You make me feel so young'
end

ruby app.rb

*reminder

Aaron, slide to other screen

Made with Slides.com