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

Closed
deepj opened this Issue Jul 9, 2012 · 3 comments

Comments

Projects
None yet
4 participants

deepj commented Jul 9, 2012

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 was assigned Jul 9, 2012

Owner

jodosha commented Jul 9, 2012

Can you please gist your configuration? Thanks.

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 commented Nov 20, 2012

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 closed this Jan 18, 2013

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment