Created
September 29, 2008 10:07
-
-
Save bomberstudios/13581 to your computer and use it in GitHub Desktop.
the simplest sinatra app
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Sinatra sample app. | |
# | |
# Usage: | |
# $ sudo gem install sinatra | |
# $ ruby this_file.rb | |
# $ open http://0.0.0.0:4567/ | |
require "rubygems" | |
require "sinatra" | |
get '/' do | |
"Hello world." | |
end | |
get '/about' do | |
"I'm running on Sinatra v" + Sinatra::VERSION | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment