Guest User

Untitled

a guest
Dec 16th, 2018
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.24 KB | None | 0 0
  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
Add Comment
Please, Sign In to add comment