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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T04:02:02+00:00 2026-05-21T04:02:02+00:00

Platform: Mac OSX 10.6 In my terminal, i start the Ruby console with rails

  • 0

Platform: Mac OSX 10.6

In my terminal, i start the Ruby console with “rails c”

While following the Ruby on Rails 3 tutorial to build a class:

class Word < String 
  def palindrome? #check if a string is a palindrome
    self == self.reverse
  end
end

i get the error message:

TypeError: superclass mismatch for class Word
    from (irb):33
    from /Users/matthew/.rvm/gems/ruby-1.9.2-p180@rails3tutorial/gems/railties-3.0.5/lib/rails/commands/console.rb:44:in `start'
    from /Users/matthew/.rvm/gems/ruby-1.9.2-p180@rails3tutorial/gems/railties-3.0.5/lib/rails/commands/console.rb:8:in `start'
    from /Users/matthew/.rvm/gems/ruby-1.9.2-p180@rails3tutorial/gems/railties-3.0.5/lib/rails/commands.rb:23:in `<top (required)>'
    from script/rails:6:in `require'
    from script/rails:6:in `<main>'

The tutorial shows that it has no problem and i know the code is fine; I’ve searched other related questions, but they all involved migrating from Ruby 2 to 3 or erb vs eruby.

  • 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-21T04:02:02+00:00Added an answer on May 21, 2026 at 4:02 am

    You already have a Word class defined elsewhere. I tried within a Rails 3 app but was not able to replicate.

    If you have not created a second Word class yourself, it is likely one of your Gems or plugins already defines it.

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

Sidebar

Related Questions

I need a cross platform method of determining the MAC address of a computer
I'm writing some cross-platform code between Windows and Mac. If list::end() "returns an iterator
I'm writing cross platform C++ code (Windows, Mac). Is there a way to check
I am looking to write some C# code for linux/windows/mac/any other platform, and am
I need a cross platform solution for clearing the console in both Linux and
I'm installing the Android SDK on Mac OS X. Following the instructions on the
Let me preface this question by saying I use TextMate on Mac OSX for
Why does the program listed below run on mac osx and linux but not
In my development system (mac os x) I added the following lines at the
Platform: Windows XP Development Platform: VB6 When trying to set an application title via

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.