Re: Require in models?

Jason Roelofs
2007-01-26T19:43:37Z

You should almost never need to require anything in your model; Rails
includes a ton of libraries for you. Odd error though, not exactly sure what
it means.

Jason

On 1/26/07, Lee <lee_longmore-/E1597aS9LT10XsdtD+oqA@public.gmane.org>
wrote:
>
>
> I am getting the error "Missing model property.rb" whenever I
insert
> require statements into my model (in this case property.rb). The error
> occurs when I try to access my application through the browser. As soon
> as I remove the require, the error no longer occurs.
>
> My code is as follows:
>
> require ''validation''
> require ''date''
> require ''time_period''
> class Property < ActiveRecord::Base
> ...
>
> Thanks.
>
>
> >