Can you do anything useful with the Captionfile class? Creating
records for example.
I assume you have you tried restarting the server.
Are you sure you have not got Captionfile declared in another file
somewhere? Perhaps you kept a copy of captionfiles.rb with an out of
date definition in it. Do a global source search for Captionfile in
your project.
That should be has_many :runs by the way (plural) but I don't think
that is anything to do with this problem.
Colin
There's nothing, at first glance, wrong with your code. So can you
just confirm which version of Rails you have installed. Older (very
old!) versions didn't have ".all", you had to use ".find(:all)". But
if that's your problem, you must be on Rails 1.x, and that won't be
the last of your problems...
You did not say whether you can do anything useful with the class at
all (probably because you top posted rather than inserting comments
inline). This would have told us whether it is something specific to
do with #all or whether your class is not being recognised as an
ActiveRecord class.
Colin
> --
> You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
> To post to this group, send email to rubyonra...@googlegroups.com.
> To unsubscribe from this group, send email to rubyonrails-ta...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
>
That is why I suggested doing a global search for Captionfile.
>
> I renamed the class files and suddenly it all worked. I now have to
> figure out how to include these class files without conflict (I'll
> likely rename them).
You can't have two different classes of the same name.
>
> Thanks for your tipoff! That's what lead me to my solution.
Glad to be of help
Colin