Last active
December 19, 2015 11:29
-
-
Save sudiptamondal/5947983 to your computer and use it in GitHub Desktop.
Complementing a tutorial video with ruby code.
Part 2. Hello World
This file contains 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
# hello_world.rb | |
# This will manage routes and display the content. | |
# I am sure, you did watch the video before checking this out. | |
require "sinatra" | |
set :bind, '127.0.0.1' | |
set :port, '8080' | |
get '/hello/:name' do | |
"Hello #{params[:name]}!" | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment