Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
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, ''
set :port, '8080'
get '/hello/:name' do
"Hello #{params[:name]}!"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment