rack
Why do I get NameError when I run a rack app with "rackup"?
I\'m having trouble running a rack app using rackup. This is my config.ru: $:.unshift \"#{File.dirname(__FILE__)}/lib/\"[详细]
2023-03-15 14:43 分类:问答Same request sent twice has two different responses
Please conside开发者_JS百科r this test: def test_ok_on_second_request bad_response = @request.get \"/bad-response\"[详细]
2023-03-15 04:43 分类:问答Deny entire application with Rack?
I have a client who wishes to lock their entire application under certain conditions.This seems like a good job for Rack Middleware, so I wrote the following:[详细]
2023-03-13 19:19 分类:问答Rails / Rack / Config.ru
Trying to follow the \"Ruby on Rails 3 Tutorial\" and running rails s, getting the following error: [path]\\config.ru:1 in \'require\': no such file to load 开发者_如何学C-- fake_app[详细]
2023-03-12 23:55 分类:问答Getting upload process via Nginx + Unicorn
I\'m using Nginx to reverse proxy my Unicorn process for a Rails app that I have. I would like to be able to get a progress status (similar to apache-upload-progress-module) for file uploads. I tried[详细]
2023-03-12 21:47 分类:问答Message "X-Accel-Mapping header missing" in Nginx error log
I am running a Rails 3 site on Ubuntu 8.04 with Nginx 1.0.0 and Passenger 3.0.7. In my Nginx error.log I started seeing the message X-Accel-Mapping header missing quite a lot. Googling lead me to the[详细]
2023-03-10 15:30 分类:问答Is it possible to to rewrite the base URL in Sinatra?
Is it possible to to rewrite the base URL? E.g. instead of www.host.com/ to use www.host.com/blah/ as[详细]
2023-03-10 06:03 分类:问答Uploading lots of files in my webapp leads to deadlock in Rack + Unicorn
I\'ve got a Rails 3.1rc1 app that allows uploading of multiple files at once via a jQuery plugin called File Upload: http://aquantum-demo.appspot.com/file-upload This allows the user to upload a bunch[详细]
2023-03-09 15:55 分类:问答Sinatra session not preserved with Rack::FiberPool
The session is not preserved between requests, though I can\'t see what I\'m 开发者_Python百科doing wrong. Code![详细]
2023-03-09 15:04 分类:问答mongoid query caching
Rails\' ActiveRecord has a feature called Query Caching (ActiveRecord::QueryCache) which saves the result of SQL query for the life-spa开发者_如何学运维n of a request. While I\'m not very familiar wit[详细]
2023-03-07 21:50 分类:问答