Re: [Rails] Re: Why is this simple require failing?

2012-09-23 Thread Victor Goff
On Sun, Sep 23, 2012 at 7:46 PM, S Ahmed wrote: > I see what your saying. > > I guess what I am asking then is, when developing your own gem, say I am > developing my gem on my Mac in: > > /Users/me/projects/ruby/gem/some_gem_name/ > > So this means I have to somehow modify my load_path so that I

Re: [Rails] Re: Why is this simple require failing?

2012-09-23 Thread S Ahmed
I see what your saying. I guess what I am asking then is, when developing your own gem, say I am developing my gem on my Mac in: /Users/me/projects/ruby/gem/some_gem_name/ So this means I have to somehow modify my load_path so that I can just require things like: require 'folder/file' And the

Re: [Rails] Re: Why is this simple require failing?

2012-09-23 Thread Victor Goff
> > That's because most of the time when you require something, it is a gem, > and gems are installed in specific directories that ruby searches when > you require something. You can see a list of the directories ruby > searches when you require something by doing this: > > p $LOAD_PATH 7Stud wa

[Rails] Re: Why is this simple require failing?

2012-09-23 Thread 7stud --
> I've never seen that require in any gems on the web That's because most of the time when you require something, it is a gem, and gems are installed in specific directories that ruby searches when you require something. You can see a list of the directories ruby searches when you require some

[Rails] Re: Why is this simple require failing?

2012-09-23 Thread 7stud --
> Also to reference the class, I still needed to prefix the module name > which is also strange because I am requiring it! Look up the difference between 'require' and 'include'. -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Gro