19 Feb '12, 8am

Sinatra: README (Chinese):

# 在 http://example.com/example 上运行的应用 get '/foo' do request.body # 被客户端设定的请求体(见下) request.scheme # "http" request.script_name # "/example" request.path_info # "/foo" request.port # 80 request.request_method # "GET" request.query_string # "" request.content_length # request.body的长度 request.media_type # request.body的媒体类型 request.host # "example.com" request.get? # true (其他动词也具有类似方法) request.form_data? # false request["SOME_HEADER"] # SOME_HEADER header的值 request.referrer # 客户端的referrer 或者 '/' request.user_agent # user agent (被 :agent 条件使用) request.cookies # 浏览器 cookies 哈希 request.xhr? # 这是否是ajax请求? request.url # "http://example.com/example/foo" request.path # "/example/foo" request.ip # 客户端IP地址 request.secure? # false(如果是ssl则为true) request.forwarded? # true (如果是运行在反向代理之后) request.env # Rack中使用的未处理的env哈希 end

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

Tweets

Sinatra: README (Russian):

sinatrarb.com 20 Feb '12, 2pm

# приложение запущено на http://example.com/example get '/foo' do t = %w[text/css text/html application/javascript] reques...

Sinatra in The Wild:

sinatrarb.com 17 Feb '12, 7pm

Sinatra::SimpleNavigation Easy creation of navigations (with multiple levels) with sinatra and the simple-navigation gem s...

rubyflowed > mocktra = webmock + sinatra

rubyflow.com 20 Feb '12, 4pm

Posted by jugyo on February 20, 2012 — 0 comments mocktra is a webmock DSL using sinatra. You can define web stub using si...

Apple has trademark weakness: Chinese experts

Apple has trademark weakness: Chinese experts

straitstimes.com 20 Feb '12, 9am

A woman checks her cell phone while walking past advertising for the iPad 2 in Beijing. At least 39 Chinese companies and ...

34 injured in Chinese tourist bus accident in Hualien: A tour bus carrying mainland Chinese tourists collided in...

34 injured in Chinese tourist bus accident in H...

asiaone.com 18 Feb '12, 6am

The China Post/Asia News Network Saturday, Feb 18, 2012 A tour bus carrying mainland Chinese tourists collided into the hi...

Syrian sovereignty must be respected: Chinese envoy

Syrian sovereignty must be respected: Chinese e...

channelnewsasia.com 18 Feb '12, 7am

DAMASCUS: Chinese Vice Foreign Minister Zhai Jun said the international community must respect Syria's sovereignty after D...

Oriental DreamWorks eyes first Chinese film in 2016: Jeffrey Katzenberg, whose studio has produced megahits like...

Oriental DreamWorks eyes first Chinese film in ...

asiaone.com 18 Feb '12, 7am

LOS ANGELES - Oriental DreamWorks, a US-Chinese joint venture announced Friday, hopes to release its first film "with Chin...

“@limkitsiang: At crossroads – MCA or Chinese c...

blog.limkitsiang.com 17 Feb '12, 3am

By Stanley Koh | February 17, 2012 Free Malaysia Today Some equate truth and falsehood to water separating from oil. The C...

Authorities seize iPads from retailers in more Chinese cities

Authorities seize iPads from retailers in more ...

straitstimes.com 16 Feb '12, 12pm

Authorities have seized iPads from retailers in more Chinese cities in an escalating dispute between Apple and a strugglin...

EV in a Frightening Chinese Haze: Filed under: ...

cleantechnica.com 17 Feb '12, 10pm

The short answer is “Rhetoric,” which is essentially the study of arguments and a basis for most advertising. But adverts ...

Apple's iPad too popular in China to ban: Chine...

todayonline.com 16 Feb '12, 8am

BEIJING - A debt-laden Chinese technology firm seeking to ban all shipments of Apple's popular iPad tablet into and out of...

Chinese zoo holds Valentine's Day wedding for male sheep and female deer

Chinese zoo holds Valentine's Day wedding for m...

straitstimes.com 15 Feb '12, 6am

A ram named Changmao (right) and a female deer named Chunzi (left) take part in a wedding on Valentine's Day at the Yunnan...

Cheap flights lure Chinese prostitutes to Malaysia

Cheap flights lure Chinese prostitutes to Malaysia

straitstimes.com 14 Feb '12, 9am

Low air fares and direct flights from 14 destinations in China are among the contributing factors for the influx of Chines...

Chinese village experiments with democracy

Chinese village experiments with democracy

channelnewsasia.com 12 Feb '12, 10am

SHANGHAI: A Chinese village which staged an extraordinary rebellion against authorities last year has taken a key step in ...

WP-PageNavi 2.50 Readme

lesterchan.net 12 Feb '12, 11am

NEW: WP-PageNavi Will Load 'pagenavi-css.css' Inside Your Theme Directory If It Exists. If Not, It Will Just Load The Defa...