Hello world in Sinatra

January 26, 2012
ruby

All you have to do to get a hello world in Sinatra is this:

$ gem install sinatra
$ ruby -rrubygems -e "require 'sinatra'; get('/'){ 'hello world' }"

Take a look at 0.0.0.0:4567 and you'll see the results.