Skip to content

Instantly share code, notes, and snippets.

@19WAS85
Created September 17, 2008 21:05
Show Gist options
  • Save 19WAS85/11309 to your computer and use it in GitHub Desktop.
Save 19WAS85/11309 to your computer and use it in GitHub Desktop.
require 'rubygems'
require 'sinatra'
get '/' do '<h1>Olá!</h1>' end
get '/usuarios' do '<h2>Usuários</h2><p>Aparecerá uma lista aqui.</p>' end
get '/usuarios/:nome' do "<p>Olá #{params[:nome]}!</p>" end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment