Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6139645
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T18:01:02+00:00 2026-05-23T18:01:02+00:00

I am just trying to walk through this tutorial http://jimneath.org/2011/03/24/using-redis-with-ruby-on-rails.html#redis_and_rails And when I put

  • 0

I am just trying to walk through this tutorial

http://jimneath.org/2011/03/24/using-redis-with-ruby-on-rails.html#redis_and_rails

And when I put this code in lib/user.rb or app/models/user.rb:

class User < ActiveRecord::Base
  # follow a user
  def follow!(user)
    @redis.multi do
...

I get this error:

ActiveRecord::StatementInvalid: Could not find table 'users'
    from /Users/jeremysmith/.rvm/gems/ruby-1.9.2-p180/gems/activerecord- 3.0.5/lib/active_record/connection_adapters/sqlite_adapter.rb:295:in `table_structure'

Note that @redis is working, and I’m not using sqlite at all, so I’m not sure why it is being referenced. I do have sqlite included in my Gemfile, but it is nowhere else in my project.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T18:01:03+00:00Added an answer on May 23, 2026 at 6:01 pm

    You would still require a normal sqlite / mysql database to store your users, it’s just certain parts that you are storing in redis. Make sure you have the proper migrations and issue a rake db:migrate.

    I also noticed you used @redis instead of $redis are you sure that’s working as expected?

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Just trying to get my head around Generics by reading this enlightening article by
just trying to test for equality in this piece of code, but getting a
I'm trying to walk someone through adding CorePlot to their iPhone app. I have
This is my first time trying to set up capistrano to deploy a rails
Just trying to understand the linear probing logic. With as hashtable using open addressing,
Just learning this stuff, so bear with any ignorance... In what I'm trying to
I'm trying to create a recurring struct method in my code to walk through
I'm trying to walk through my buffers list, select a single line from each
Just trying to get my irb sessions to actually list the current line of
Just trying to get up to speed with the SDK... So, I've created my

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.