This introductory demo script uses source code from sinatra_first_project, which you can find in my sinatra_examples repo. You should copy it step by step if you really want to learn!
cd
to itgit init
require 'sinatra'
get '/' do
'<h1>Hello world</h1>!'
end
Update app.rb to full example