Top "Rack" questions

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

git, Heroku: pre-receive hook declined

I am in the process of setting up a git repository and attempting to link it to Heroku. When I …

ruby git heroku rack
HTML5 video will not loop

I have a video as a background to a web page, and I am trying to get it to loop. …

google-chrome mime-types html5-video rack gridfs
What is Rack middleware?

What is Rack middleware in Ruby? I couldn't find any good explanation for what they mean by "middleware".

ruby-on-rails ruby http web-applications rack
Logging in Sinatra?

I'm having trouble figuring out how to log messages with Sinatra. I'm not looking to log requests, but rather custom …

ruby logging sinatra rack
What's the difference between request.remote_ip and request.ip in Rails?

As the title goes, you can get the client's ip with both methods. I wonder if there is any differences. …

ruby-on-rails ruby rack
How to parse JSON request body in Sinatra just once and expose it to all routes?

I am writing an API and it receives a JSON payload as the request body. To get at it currently, …

ruby sinatra rack
Use Rack::CommonLogger in Sinatra

I have a small web-server that I wrote with Sinatra. I want to be able to log messages to a …

ruby logging sinatra rack error-logging
How to dump an HTTP request from within Sinatra?

Is there a way to dump all incoming requests to a Sinatra application in the exact way the application receives …

ruby sinatra rack
How do I access the Rack environment from within Rails?

I have a Rack application that looks like this: class Foo def initialize(app) @app = app end def call(env) …

ruby-on-rails ruby rack middleware
Rack::Request - how do I get all headers?

The title is pretty self-explanatory. Is there any way to get the headers (except for Rack::Request.env[])?

ruby http http-headers rack