Project

General

Profile

Plugin development: Undefined method 'find' for Test:Module

Added by Eduardo Yáñez Parareda over 14 years ago

Hello, I'm writting a plugin named Tests. I have a model:

Test < ActiveRecord::Base

In the controller, when I do Test.find(:all) I get the error:

NoMethodError: undefined method `find' for Test:Module

Any idea?


Replies (1)

RE: Plugin development: Undefined method 'find' for Test:Module - Added by Eduardo Yáñez Parareda over 14 years ago

Finally, I find out the problem.

The model can't be called Test, so I've to change it to AuditTest and everything works fine.

    (1-1/1)