SHARE
TWEET

Untitled

a guest Dec 16th, 2018 55 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. require 'sinatra'
  2.  
  3. # Main route  - this is the form where we take the input
  4. get '/' do
  5.   # params[:yourname] will be replaced with the value entered for
  6.   # the input with name 'yourname'  
  7.   <<-HTML
  8.     Hello #{params[:yourname]}
  9.   HTML
  10. end
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top