From: Daniel Waite Date: 2009-01-25T17:52:51+09:00 Subject: Re: Scope resolution operator Stefano Crocco wrote: > Not knowing rails, I can't say much on this. However, if it works with > ::Attachment and doesn't work with Attachment, the only thing I can > think of > is that you have two constants called Attachment: one at global level, > which > is the one you need here, and another at a more local level which is the > one > you get without the :: You may not be familiar with Rails but you certainly know Ruby. That is exactly the case. The Paperclip module defines an Attachment class, methods of which I am using in my own Attachment class. Talk about a naming conflict. Grr... Thanks for the reply Stefano, it's helped a lot. -- Posted via http://www.ruby-forum.com/.