Skip to content

Instantly share code, notes, and snippets.

@daddz
daddz / gist:215878
Created Oct 22, 2009
Rack::Lint::LintError at / rack.input #<StringIO:0x000000024c7348> does not have ASCII-8BIT as its external encoding
View gist:215878
# /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
View user.rb
$:.unshift File.join(File.dirname(__FILE__), "..", "lib")
require 'rubygems'
require 'sinatra'
get '/' do
"Hello World"
end