Brian Schröder
2/20/2005 10:21:00 PM
On Mon, 21 Feb 2005 06:44:42 +0900
"T E" <thedcm@gmail.com> wrote:
> I have a file (index.rb) that includes head.rb. head.rb has a class
> "Page" and in it, method "start". The problem is that when calling
> Page.start I get this error: "uninitialized constant
> #<Module:0x2a9e2793f8>::Page (NameError)" it is pretty frustrating, can
> anyone tell me whats wrong with it?
>
>
If you are inside of another modules namespace, maybe you'd need to directly address the Page class you want. Otherwise, please try to cut down the code to a minimal example and post it here.
E.g.
::Page.new.start
hope to help,
Brian