Ruby on Rails 3 : “superclass mismatch for class …”

后端 未结 5 1035
长发绾君心
长发绾君心 2020-12-02 16:43

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:



        
5条回答
  •  渐次进展
    2020-12-02 17:00

    I had this same problem right now. Basically that means that Word is defined as a class elsewhere and my guess is that it's on the rail-ties gem. Just change Word to Word2 and it should work fine on the tutorial.

提交回复
热议问题