Reputation: 14938
For some reason, one of my Ruby on Rails classes produces this sort of error everytime I try to call any method on it:
undefined method `create' for Thread:Class
I created this class just like any other, using ./script/generate model Thread
, and then migrating it. So why is it acting so strange?
Upvotes: 0
Views: 128
Reputation: 1209
There is already a Thread class in ruby maybe its a name clash
Upvotes: 2