06 Jul '12, 9pm

@Filzo entnehme ich, dass du "gem install thin" machen möchtest; dann Proxy-RewriteRule in .htaccess packen.

# app running on http://example.com/example get '/foo' do t = %w[text/css text/html application/javascript] request.accept # ['text/html', '*/*'] request.accept? 'text/xml' # true request.preferred_type(t) # 'text/html' request.body # request body sent by the client (see below) request.scheme # "http" request.script_name # "/example" request.path_info # "/foo" request.port # 80 request.request_method # "GET" request.query_string # "" request.content_length # length of request.body request.media_type # media type of request.body request.host # "example.com" request.get? # true (similar methods for other verbs) request.form_data? # false request["SOME_HEADER"] # value of SOME_HEADER header request.referrer # the referrer of the client or '/' request.user_agent # user agent (used by :agent condition) request.cookies # hash of browser cookies request.xhr? # is this an ajax req...

Full article: http://www.sinatrarb.com/intro.html

Tweets

Du bist doch…: “Echt jetzt, könnte ich schwören...

taxi-blog.de 02 Jul '12, 10pm

“Echt jetzt, könnte ich schwören! Wenn ich die Augen zu mache, klingst Du exakt so, wie der $TypMitDemMegafonVonUnsermFanc...

File: README ['Rack Documentation']:

rack.rubyforge.org 04 Jul '12, 2am

Adrian Madrid, for the LiteSpeed handler. Christoffer Sawicki, for the first Rails adapter and Rack::Deflater . Tim Fletch...

How to install custom modem on Samsung Galaxy S3? #fb

How to install custom modem on Samsung Galaxy S...

jayceooi.com 06 Jul '12, 4am

Personally, I don’t install custom modem on my Samsung Galaxy S III. I will stick with the modem (radio / baseband) that...

A new release of the HelpSpot Ruby Gem is avail...

rubygems.org 04 Jul '12, 2am

help_spot 0.0.9 API wrapper for HelpSpot install gem install help_spot Download Documentation Subscribe Stats Authors Jess...