blog.robotex.de

Rails3 on oracle: NoMethodError: undefined method `eq' for nil:NilClass

When try to make simple queries against an oracle database on rails3 and you get following error:

irb(main):017:0> User.find(1)
NoMethodError: undefined method `eq' for nil:NilClass

You may have entered the table name in your model in UPCASE. Change it to downcase, and it should work!


Back