Your code works perfectly for me, except that I had to change the path from "report/" to "/report" (because that's what Sinatra sees when you go to
'http://localhost:4567/report/
).
The exact code that I ran is:
require 'sinatra'
require 'prawn'
get '/report/' do
content_type 'application/pdf'
pdf = Prawn::Document.new
pdf.text "Hello World"
pdf.render
end
and here's my ruby version:
ruby 1.9.3p448 (2013-06-27 revision 41675) [x86_64-darwin12.2.1]
I think you must be incredibly close.