Skip to content

Instantly share code, notes, and snippets.

Embed
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, '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
You can’t perform that action at this time.