22 Apr '12, 2pm

Now browsing: "Sinatra: README (Japanese)"

# アプリケーションが 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ヘッダの値 request.referer # クライアントのリファラまたは'/' request.user_agent # ユーザエージェント (:agent 条件によって使用される) request.cookies # ブラウザクッキーのハッシュ request.xhr? # Ajaxリクエストかどうか request.url # "http://example.com/example/foo" request.path # "/example/foo" request.ip # クライアントのIPアドレス request.secure? # false request.env # Rackによって渡された生のenvハッシュ end

Full article: http://www.sinatrarb.com/intro-jp.html#Sinatra::Base%20-%...

Tweets

“Sinatra: README”

sinatrarb.com 27 Apr '12, 5am

# app running on http://example.com/example get '/foo' do t = %w[text/css text/html application/javascript] request.accept...

japanese tofu recipes chinese | Just another Ma...

samlee86.com 22 Apr '12, 3pm

Wednesday March 09 2011 Labels Appetizers Asian Horsdoeuvres Japanese Recipes tofu recipes Vegetarian . No Carb Recipe Cre...

I ATE @ Ishin Japanese Restaurant, Old Klang Road

I ATE @ Ishin Japanese Restaurant, Old Klang Road

xes.cx 21 Apr '12, 2pm

Anyway, Ishin Japanese Restaurant is located in an old bangalow facing Old Klang Road. The bangalow has been there ever si...

WP-Ban 1.40 Readme

lesterchan.net 25 Apr '12, 9am

Ban users by IP, IP Range, host name and referer url from visiting your WordPress's blog. It will display a custom ban mes...

[NEWS] Singapore welcomes new Sansui Contemporary Japanese Dining & Bar to Clarke Quay:

[NEWS] Singapore welcomes new Sansui Contempora...

is.asia-city.com 22 Apr '12, 7am

Bustling Singapore nightspot Clarke Quay welcomes its latest tenant, Sansui Contemporary Japanese Dining & Bar . Brought t...

Guides Standalone Usage in Sinatra - Padrino Ru...

padrinorb.com 22 Apr '12, 7pm

In these instances, the ideal situation would be to cherry-pick individual enhancements and use them in your existing Sina...

N. Korea to refuse nuclear inspectors: Japanese media

N. Korea to refuse nuclear inspectors: Japanese...

channelnewsasia.com 17 Apr '12, 1am

TOKYO: North Korea will not let inspectors from the International Atomic Energy Agency examine its nuclear programme, Japa...

Obama to welcome Japanese PM on April 30: United States (US) President Barack Obama will meet with Japanese Prim...

Obama to welcome Japanese PM on April 30: Unite...

straitstimes.com 18 Apr '12, 7am

U.S. President Barack Obama (R) shakes hands with Japan's Prime Minister Yoshihiko Noda during the Nuclear Security Summit...

Japanese Scientists Create Computer Out of Soldier Crabs

Japanese Scientists Create Computer Out of Sold...

treehugger.com 17 Apr '12, 5pm

A team of Japanese scientists at Kobe University, lead by Yukio-Pegio Gunji, have built a computer out of live crabs. Befo...

Grabe si lola! Japanese woman, 73, in record Everest attempt

Grabe si lola! Japanese woman, 73, in record Ev...

straitstimes.com 16 Apr '12, 12pm

This picture taken on Jun 2, 2004, shows 65 year old Japanese female mountaineer Tamae Watanabe (left) posing alongside cl...

DIY the Japanese delicate earring with clay and...

michellephan.com 18 Apr '12, 12am

As the approaching of spring and summer season, the colorful ornaments seem to be the favorites again. Especially the char...

IBM Welcomes Japanese Partners to Potentially W...

hybridcars.com 21 Apr '12, 3am

IBM is totally misunderstanding the problem if they imagine that energy density is the obstacle. PRICE is the obstacle and...