Skip to content

Instantly share code, notes, and snippets.

@daddz
daddz / gist:215878
Created October 22, 2009 10:15
Rack::Lint::LintError at / rack.input #<StringIO:0x000000024c7348> does not have ASCII-8BIT as its external encoding
# /usr/lib/ruby/gems/1.9.1/gems/rack-1.0.1/lib/rack/lint.rb: in assert
11.
12. # :stopdoc:
13.
14. class LintError < RuntimeError; end
15. module Assertion
16. def assert(message, &block)
17. unless block.call
$:.unshift File.join(File.dirname(__FILE__), "..", "lib")
require 'rubygems'
require 'sinatra'
get '/' do
"Hello World"
end