ruby class names are Upper case by definition, use:

class Sampleclass
  or
class SampleClass

On Aug 31, 1:23 pm, maddy <[email protected]> wrote:
> Hi Fred,
>
>    Thanks for clarification. You're right, I had mixed up things
> there.
>
> Thanks,
> Maddy
>
> On Aug 31, 9:05 pm, Frederick Cheung <[email protected]>
> wrote:
>
> > On Aug 31, 3:43 pm, maddy <[email protected]> wrote:
>
> > >  Now when I give command (To run the application) "ruby testapp.rb" ,
> > > I get this error "NameError: undefined local variable or method
> > > `testapp' for main:Object". I believe, the irb is not able to
> > > recognize any .rb file. Can anybody help me with this?
>
> > You are mixing things up a bit. ruby testapp.rb is what you'd enter at
> > the command prompt to run a ruby script. irb on the other hand is a
> > ruby console, that evaluates ruby code.
>
> > Fred
--~--~---------~--~----~------------~-------~--~----~
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 [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to