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 7721139
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T03:50:56+00:00 2026-06-01T03:50:56+00:00

Possible Duplicate: Error loading Active Record gem with sinatra app using RVM I have

  • 0

Possible Duplicate:
Error loading Active Record gem with sinatra app using RVM

I have a Faye app, in which I’d like to make use of ActiveRecord. I have this in my faye.ru:

require "rubygems"
require "faye"
require "sqlite3"
require "activerecord"

... other code

And I want to start it via: rackup faye.ru -s thin -E production

This fails with the following error: /home/tempus/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in 'require': cannot load such file -- activerecord (LoadError). If I run rvm current , I get: ruby-1.9.3-p125@pno. If I do a ls on the rvm dir for this gemset, I can see that activerecord is indeed installed:

actionmailer-3.2.2    builder-3.0.0              hike-1.2.1            polyglot-0.3.3   sprockets-2.1.2
actionpack-3.2.2      cookiejar-0.3.0            http_parser.rb-0.5.3  rack-1.4.1       sqlite3-1.3.5
activemodel-3.2.2     em-http-request-1.0.2      i18n-0.6.0            rack-cache-1.2   thor-0.14.6
activerecord-3.2.2    em-socksify-0.1.0          journey-1.0.3         rack-ssl-1.3.2   tilt-1.3.3
activeresource-3.2.2  erubis-2.7.0               json-1.6.6            rack-test-0.6.1  treetop-1.4.10
activesupport-3.2.2   eventmachine-1.0.0.beta.4  mail-2.4.4            rails-3.2.2      tzinfo-0.3.32
addressable-2.2.7     faye-0.8.1                 mime-types-1.18       railties-3.2.2   yajl-ruby-1.1.0
arel-3.0.2            faye-websocket-0.4.4       multi_json-1.2.0      rdoc-3.12

I cannot understand why it would say that it cannot find activerecord. Any clues?

  • 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-06-01T03:50:57+00:00Added an answer on June 1, 2026 at 3:50 am

    Even though the gem is called activerecord, the class is called ActiveRecord, which converts to active_record in snake case:

    require 'active_record'
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Possible Duplicate: php headers already sent error I have attached my code which am
Possible Duplicate: How do you send email from a Java app using Gmail? How
Possible Duplicate: Best practices in error reporting (Mathematica) Assume that I have a function
Possible Duplicate: error when uploading string with special characters I have a string say
Possible Duplicate: error of importing DBI in Perl I have a problem when I
Possible Duplicate: Perplexing Ruby/MySQL Error: "invalid packet: sequence number mismatch" My rails app just
Possible Duplicate: Why passing &error instead of error in Cocoa programming? I have a
Possible Duplicate: Confusing Template error I have a templated class with a templated method.
Possible Duplicate: Asp.net how to correct the error I'm designing my web page using
Possible Duplicate: ERROR: While executing gem … (Zlib::GzipFile::Error) not in gzip format When installing

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.