Define routes as methods on Sinatra::Base...
Define routes as methods on Sinatra::Base...

This makes deciphering a stacktrace much easier

RecordNotFound - No Post for id 3
./x.rb:9:in `route { GET /posts/:id }'
./lib/sinatra/base.rb:366:in `send'
./lib/sinatra/base.rb:366:in `invoke'
./lib/sinatra/base.rb:362:in `catch'
...

ABaldwinHunter/sinatra-classic,jenalgit/sinatra,jenalgit/sinatra,d-bot/sinatra,porras/sinatra,mwpastore/sinatra,porras/sinatra,defsprite/sinatra,gferguson-gd/sinatra,trexnix/sinatra,d-bot/sinatra,nottombrown/old-sinatra,wzheng1/sinatra,sinatra/sinatra,midorineko/sinatra,nottombrown/old-sinatra,eileencodes/sinatra,frechei/sinatra,jkowens/sinatra,DoraALin/sinatra,frechei/sinatra,autopp/sinatra,dariubs/sinatra,dariubs/sinatra,cyberid41/sinatra,marocchino/sinatra,JonMidhir/sinatra,gferguson-gd/sinatra,jkowens/sinatra,kyontan/sinatra,howtolearntocode/sinatra,bmizerany/sinatra,Wirachmat/sinatra,QLGu/sinatra,defsprite/sinatra,JonRowe/sinatra,ganmacs/sinatra,RosenDimov/sinatra,ryanshaw/sinatra,trexnix/sinatra,miyazawatomoka/sinatra,JonMidhir/sinatra,autopp/sinatra,eileencodes/sinatra,nicoayala/sinatra,kumji/sinatra,Rayheng/sinatra,emiliocorpus/sinatra,laplaceliu/sinatra,cyberid41/sinatra,DoraALin/sinatra,nju520/sinatra,burningTyger/sinatra,lastcat/sinatra,JonMidhir/sinatra,lastcat/sinatra,blambeau/sinatra,sinatra/sinatra,wzheng1/sinatra,Rayheng/sinatra,ktw1222/sinatra,burningTyger/sinatra,sethuster/sinatra,emiliocorpus/sinatra,QLGu/sinatra,midorineko/sinatra,ABaldwinHunter/sinatra-classic,twanies/sinatra,mwpastore/sinatra,nju520/sinatra,howtolearntocode/sinatra,laplaceliu/sinatra,RosenDimov/sinatra,kyontan/sinatra,ksw2599/sinatra,ksw2599/sinatra,siberianbear/sinatra,kgrz/sinatra,sethuster/sinatra,davydovanton/sinatra,Wirachmat/sinatra,Callygraphy/morrissey,ganmacs/sinatra,siberianbear/sinatra,nicoayala/sinatra,ryanshaw/sinatra,kumji/sinatra,guidohcosta/sinatra,twanies/sinatra,JonRowe/sinatra,davydovanton/sinatra,guidohcosta/sinatra,miyazawatomoka/sinatra,burningTyger/sinatra,ktw1222/sinatra,jkowens/sinatra,mwpastore/sinatra