Skip to content

Instantly share code, notes, and snippets.

@sudiptamondal
Last active December 19, 2015 11:29
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save sudiptamondal/5947983 to your computer and use it in GitHub Desktop.
Complementing a tutorial video with ruby code. Part 2. Hello World
# 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