title: Could not find cache store adapter for redis_store
body: <p>I have Rails 3.1.3 app and trying to plug gem "redis" to it.</p>
  
  <p>I've added following gem to Gemfile:</p>
  
  <p>gem "redis-store"</p>
  
  <p>Following this article, i've added following code to environments/development.rb:</p>
  
  <pre><code>config.gem "redis-store", :lib =&gt; "redis-store"
  require "redis-store" # HACK
  config.cache_store = :redis_store
  </code></pre>
  
  <p>The app won't start, complaining to cache_store:</p>
  
  <p>/gems/activesupport-3.1.3/lib/active_support/cache.rb:65:in `lookup_store': Could not find cache store adapter for redis_store (no such file to load -- active_support/cache/redis_store) (RuntimeError).</p>
  
  <p>I've figured it out, including gem "redis-rails" instead of "redis-store", but i'm getting another error:</p>
  
  <blockquote>
    <p>/Users/AntonAL/.rvm/gems/ree-1.8.7-2011.03@global/gems/bundler-1.0.21/lib/bundler/rubygems_integration.rb:143:in `gem': redis-store is not part of the bundle. Add it to Gemfile. (Gem::LoadError)</p>
  </blockquote>
  
  <p>Keeping them both…</p>
  
  <pre><code>gem 'redis-store'
  gem 'redis-rails'
  </code></pre>
  
  <p>…gives another error</p>
  
  <pre><code>…gems/redis-rails-0.0.0/lib/redis-rails/version.rb:1: Redis is not a module (TypeError)
      from …/gems/activesupport-3.1.3/lib/active_support/dependencies.rb:240:in `require'
      from …/gems/activesupport-3.1.3/lib/active_support/dependencies.rb:240:in `require'
      from …/gems/activesupport-3.1.3/lib/active_support/dependencies.rb:223:in `load_dependency'
      from …/gems/activesupport-3.1.3/lib/active_support/dependencies.rb:640:in `new_constants_in'
      from …/gems/activesupport-3.1.3/lib/active_support/dependencies.rb:223:in `load_dependency'
      from …/gems/activesupport-3.1.3/lib/active_support/dependencies.rb:240:in `require'
      from …/gems/redis-rails-0.0.0/lib/redis-rails.rb:1
      from …/gems/bundler-1.0.21/lib/bundler/runtime.rb:68:in `require'
      from …/gems/bundler-1.0.21/lib/bundler/runtime.rb:68:in `require'
      from …/gems/bundler-1.0.21/lib/bundler/runtime.rb:66:in `each'
      from …/gems/bundler-1.0.21/lib/bundler/runtime.rb:66:in `require'
      from …/gems/bundler-1.0.21/lib/bundler/runtime.rb:55:in `each'
      from …/gems/bundler-1.0.21/lib/bundler/runtime.rb:55:in `require'
      from …/gems/bundler-1.0.21/lib/bundler.rb:122:in `require'
      from …/config/application.rb:11
      from …/gems/railties-3.1.3/lib/rails/commands.rb:52:in `require'
      from …/gems/railties-3.1.3/lib/rails/commands.rb:52
      from …/gems/railties-3.1.3/lib/rails/commands.rb:49:in `tap'
      from …/gems/railties-3.1.3/lib/rails/commands.rb:49
      from script/rails:6:in `require'
      from script/rails:6
  </code></pre>
  
  <p>Help, please!</p>