On Aug 20, 9:22 am, Deepesh Cp <[email protected]> wrote:
> > i tried to run hello.rb which contains puts "HAI DEEPESH">>ruby hello.rb but > i am getting > > NameError: undefined local variable or method `hello' for main:Object > from (irb):6 Sounds like you're trying to do this from an irb console. Why not do it from the command prompt ? (if you do want to shell out and execute something from irb you should have a look at `` or system) Fred > -- > Posted viahttp://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

