sudo gem install sinatra
require "rubygems"
require "sinatra"
get '/' do
"Hello World"
end
Run your app with $ ruby myapp.rb and point your browser at http://localhost:4567
cd where/you/keep/your/projectsgit clone git://github.com/bmizerany/sinatra.gitcd your_projectln -s ../sinatraat the top of your sinatra.rb file
$:.unshift File.dirname(__FILE__) + '/sinatra/lib'
require 'sinatra'
get '/about' do
"All good in the hood"
end