Created
October 21, 2013 17:50
Revisions
-
samueldowens created this gist
Oct 21, 2013 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,25 @@ # # config.ru require 'sinatra' get '/' do "Hello Sinatra!" end get '/hello/:name' do |n| "Hello #{n}!" end get '/wildcard/*' do request.inspect end error 404 do "OMG, 404!" end get '/breakit' do 500 end run Sinatra::Application