20 Feb '12, 2pm

Sinatra: README (Russian):

# приложение запущено на 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.scheme # "http" request.script_name # "/example" request.path_info # "/foo" request.port # 80 request.request_method # "GET" request.query_string # "" request.content_length # длина тела запроса request.media_type # медиатип тела запроса request.host # "example.com" request.get? # true (есть аналоги для других методов HTTP) request.form_data? # false request["SOME_HEADER"] # значение заголовка SOME_HEADER request.referrer # источник запроса клиента либо '/' request.user_agent # user agent (используется для :agent условия) request.cookies # хеш, содержащий cookies браузера request.xhr...

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

Tweets

Sinatra: README (Chinese):

sinatrarb.com 19 Feb '12, 8am

# 在 http://example.com/example 上运行的应用 get '/foo' do request.body # 被客户端设定的请求体(见下) request.scheme # "http" request.script_n...

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...

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...

We ♥ Russian Red! see you there!

mosaicmusicfestival.com 17 Feb '12, 5am

"Following the success of her 2008 released debut album I Love Your Glasses, Lourdes Hernandez has further accentuated her...