Top "Rack" questions

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

Mount Sinatra app inside a rails app and sharing layout

I would like to mount a sinatra application in my rails app. But I would like this one to share …

ruby-on-rails ruby-on-rails-3 sinatra rack
mongoid query caching

Rails' ActiveRecord has a feature called Query Caching (ActiveRecord::QueryCache) which saves the result of SQL query for the life-span …

ruby ruby-on-rails-3 caching mongoid rack
Passing options to rackup via a Sinatra application

I'm new to ruby, learning Sinatra. While creating a Sinatra site by requiring 'sinatra' and setting up the routes directly …

ruby sinatra rack thin rackup
Rack Error "Rack::Lint::LintError: Response body must respond to each"

I'm going through the tekpub rack tutorial but when I try to run even a basic program in rack i …

ruby-on-rails ruby rack
What's the difference between rack app vs. rails app?

I uploaded my rails 2.3.8 app to DreamHost and got an error about rack version incompatibility. I issued a support ticket …

ruby-on-rails rack
Undefined method failure_app for nil:NilClass

I am trying to use devise from a Rails app to grant access to a Sinatra application within the Rack …

devise sinatra rack warden
JSON Web Token with Devise

I hope this does not count as an opinionated question. I just need to be pointed in the right direction. …

ruby-on-rails ruby devise rack jwt
How to determine if Rails is running from CLI, console or as server?

I have a middleware for announcing my application on the local network app using Bonjour, but it's also announcing the …

ruby-on-rails rack rack-middleware
How to use cookies in a Rack middleware?

I am using Ruby on Rails 3 and I would like to use the cookies.signed method in a Rack middleware. …

ruby-on-rails ruby ruby-on-rails-3 cookies rack
Is there an easy way to have pow serve https?

pow is great, but many things in my app assume https, and it would be a pain to go through …

ruby-on-rails ssl https rack rack-pow