Re: LoadError (Expected model.rb to define Model)

Frederick Cheung
Sat, 07 Jun 2008 18:14:37 -0000

On 6 Jun 2008, at 16:23, jonathan stegall wrote:

>
> Hello,
>
> I''m having an error that occurs in production (on Dreamhost) but
does
> not occur in development on my local machine. The situation is that
> there is a model (Article), and it uses act_as_ferret for search. The
> error is as follows (where I say {full server path}, that''s not
what
> the error says, just my note):
>

This is the unfortunately vague error you can get when rails auto
loads a file for you and an error occurs loading that file (eg that
file tries to oad a gem and fails).
You might be able to get a more sensible error if you required the
file article.rb explicitly.

Fred