Hi. There is a typo, the correct is Module MyCar and try doing this: require './mycar/car'
On Sun, Sep 23, 2012 at 6:29 PM, S Ahmed <sahmed1...@gmail.com> wrote: > I have a simple require call that is failing with: > > ruby mycar.rb > /Users/me/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in > `require': cannot load such file -- mycar/car (LoadError) > from > /Users/me/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in > `require' > from mycar.rb:1:in `<main>' > > My file layout is: > > mycar.rb > mycar/car.rb > > mycar.rb looks like: > > require 'mycar/car' > > > > car.rb looks like: > > modle MyCar > class Car > end > end > > > Why isn't this working, getting frustrated :( > > -- > 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 rubyonrails-talk@googlegroups.com. > To unsubscribe from this group, send email to > rubyonrails-talk+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/groups/opt_out. > > > -- 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 rubyonrails-talk@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.