Wes wrote:
> test123.rb:3: uninitialized constant Profile (NameError)
>
> This is the error message I am getting. I have written a class Profile 
> which works just fine when I test it in Profile.rb. Whenever I go to 
> link that class in a new file, though, I get the above error.
>
> test123's contents:
>
> load "Profile.rb"
> t = Profile.new
> puts t.username
>
> The latter two lines run perfectly well when after the Profile class 
> definition in Profile.rb
>
> Any advice?
>
>   

Hi Wes,

It might be easier to help you if you let us see the entire contents of 
both files. Also, you might try testing it out in irb to see if that 
sheds any more light on the issue.

-Justin