Top "Rack" questions

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

How do you configure WEBrick to use SSL in Rails?

Prior to Rails 3, you could modify the script/server file to add in SSL parameters and tell the server command …

ruby-on-rails ruby ssl rack webrick
How do I use Rack::Proxy within Rails to proxy requests to a specific path to another app

I found this great blog post on how to use Rack::Proxy as a separate proxy app. The article explains …

ruby-on-rails-3.1 proxy rack reverse-proxy routes
Where do you put your Rack middleware files and requires?

I'm in the process of refactoring some logic built into a Rails application into middleware, and one annoyance I've run …

ruby-on-rails conventions rack middleware
How to serve static files via Rack?

I am currently developing a Rack-based application and want to redirect all file requests(e.g. filename.filetype) to a …

ruby file static rack
Foreman: Use different Procfile in development and production

I have a homemade Sinatra application for which I intend to use Heroku to host it. I use foreman and …

heroku sinatra rack foreman shotgun
Can't get rack-cors working in rails application

I wanted to implement CORS in my rails application, so I googled rack-cors gem for it. And I did everything …

ruby-on-rails ruby rack cors
Specifying Content Type in rspec

I'm trying to build an rspec test that sends JSON (or XML) via POST. However, I can't seem to actually …

ruby rspec sinatra rack
rails json response with gzip compression

I have an api written in rails which on each request responds with a JSON response. The response could be …

ruby-on-rails json ruby-on-rails-3 gzip rack
How to read POST data in rack request

When I run the curl command curl -v -H "Content-type: application/json" -X POST -d '{"name":"abc", "id":"12", "subject":"…

ruby rack
What is the "env" variable in Rack middleware?

I know a Rack middleware filter is a Ruby class with an initialize and a call method. I know the …

ruby-on-rails rack middleware