Re: [Rails] Re: NoMethodError
On 13 March 2012 21:55, AndyLikesRuby <usbdish@gmail.com> wrote:
> Hi Colin,
>
> Thanks for the reply. Your question prompted me to search around my
> class declarations, and sure enough, I found the problem.
>
> I declared two container classes, Captionfile and Run, to capture
> information in a convenient, encapsulated format. From there I create
> objects to make arrays/hashes for processing
>
> I stored them in the /lib directory, which apparently conflicted with
> the ActiveRecord class declarations of the same name.
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
--
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 rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home