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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T16:09:05+00:00 2026-05-27T16:09:05+00:00

I am working on a Rails V2.3.2 project, I wanna create a new model,

  • 0

I am working on a Rails V2.3.2 project, I wanna create a new model, so I run the following command:

rails generate model cars name:string owner:string description:text

But I got the following error:

/home/myname/.rvm/gems/ree-1.8.7-2011.03@myapp/gems/activesupport-2.3.2/lib/active_support/dependencies.rb:55: uninitialized constant ActiveSupport::Dependencies::Mutex (NameError)
    from /home/myname/.rvm/rubies/ree-1.8.7-2011.03/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:55:in `gem_original_require'
    from /home/myname/.rvm/rubies/ree-1.8.7-2011.03/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:55:in `require'
    from /home/myname/.rvm/gems/ree-1.8.7-2011.03@myapp/gems/activesupport-2.3.2/lib/active_support.rb:56
...

How to get rid of this error?

P.S.

I have the code:

require 'thread'
require File.join(File.dirname(__FILE__), 'boot')

in my RakeFile , config/engironment.rb and script/server.rb

  • 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-27T16:09:06+00:00Added an answer on May 27, 2026 at 4:09 pm

    In Rails 2, the generate command is:

    ruby script/generate model car name:string owner:string description:text
    

    rails generate is the command used in Rails 3

    Also, models are singular by convention (use car instead of cars. It will avoid much head-ache afterwards).

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

Sidebar

Related Questions

Working on my first Rails project, I used Ryan Bates' Nifty-Generators to create the
I am working on a project using rails 2.1.1. With the new release of
I'm working on a Rails project where I want to allow users to create
I'm working on a Ruby on Rails project and sometimes I need to run
So I'm working on a new rails project which involves running multiple website from
Working on a rails project where there's an order confirmation string with a credit
I try to run a working rails project from OSX to Debian. I use
I'm working on a Ruby on Rails project where I have a post model
I'm working on a simple rails project where I can create a post. My
I have been working with rails 2.3.5. I am gonna start a new project

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.