Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

redis-store 1.1 and later doesn't work with latest Sinatra #141

Closed
deepj opened this Issue · 3 comments

4 participants

@deepj

Hello,
if I try to use use Rack::Session::Redis with last redis-store gem in my basic sinatra app so it returns this

uninitialized constant Rack::Session::Redis

With 1.0.0.1 version I don't have this kind of a problem.

@jodosha jodosha was assigned
@jodosha
Owner

Can you please gist your configuration? Thanks.

@blandinw

Got the same problem, solved it by adding require 'redis-rack' before use Rack::Session::Redis

Including redis-sinatra doesn't seem to include redis-rack, is it intended?

@auxbuss

I had exactly the same problem with sinatra.

I had gem redis-store in my Gemfile, which caused use Rack::Session::Redis to throw the following in sinatra's config block:

../main.rb:30:in `block in class:Main': uninitialized constant Rack::Session::Redis (NameError)

Installing redis-rack and replacing redis-store with redis-rack to the Gemfile fixed it.

The docs I've seen suggest requiring redis-store (e.g. http://jodosha.github.com/redis-store/rack-session.html), but it appears that the correct thing to load is redis-rack

@jodosha jodosha closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.