Top "Rack" questions

Rack provides a minimal interface between webservers supporting Ruby and Ruby frameworks.

How does Rails serve static content out of public?

How much ruby code deals with serving static content out of public? Does it pass through the rails app at …

ruby-on-rails rack
Why are there frozen constants everywhere?

We can easily find such style from lots of famous repositories, like rack, rails, etc. For example in rack: PATH_…

ruby-on-rails ruby ruby-on-rails-3 ruby-on-rails-4 rack
"No such middleware to insert before: Rack::Lock (RuntimeError)" after upgrading to Rails 4

I'm getting the following error after upgrading to Rails 4: .../ruby-1.9.3-p125/gems/actionpack-4.0.0.rc2/lib/action_dispatch/middleware/stack.rb:125:…

ruby-on-rails rack ruby-on-rails-4
Rails/Rack: "ArgumentError: invalid %-encoding" for POST data

Our ruby on rails site has a URI that one of our partners POSTs XML data to. Since we don't …

ruby-on-rails-3 rack ruby-1.9.3
Alter Rails params hash from Rack middleware

I am attempting to add a value to the Rails params hash from a custom Rack middleware object. My current …

ruby-on-rails ruby rack
HTTP/2 Support in Rack / Rails

HTTP/2 is released and supported by all major browsers. There are implementations shipping in major web servers like Apache and …

ruby-on-rails rack http2