Sinatra: My Way

Sinatra: My Way

How I'm using Sinatra: structure and useful scripts

880fffa706e2e38eb293e3b8b04053c1?s=128

Matthew Conway

July 19, 2012
Tweet

Transcript

  1. 5.
  2. 12.
  3. 16.

    # Gemfile source :rubygems gem ‘sinatra’ gem ‘foreman’ gem ‘unicorn’

    group :development do gem ‘shotgun’ gem ‘thin’ end
  4. 18.

    # app.rb module Haiku class App < Sinatra::Base get ‘/’

    do @haiku = Redis.srandmember(‘haiku’) haml :home end ... end end
  5. 24.

    is bundler installed? do i have the required ruby? o

    noes imagemagick! forgot to migrate... nice of you to mention those environment variables I apparently need to set yum install all --the --things brew uninstall patience mysqladmin -u wizard create blawg_development
  6. 25.
  7. 31.
  8. 35.
  9. 45.