Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- require 'sinatra'
- get '/' do
- "<a href=\"/h/Alex\">Press here!</a>"
- end
- get '/ty/:name' do
- "Thank you, #{params[:name]}"
- end
- get '/h/:name' do |n|
- # hello world with user-frienly url
- "Hello #{n}!"
- end
Advertisement
Add Comment
Please, Sign In to add comment