0

I need to do a:

require 'generator'

Inside of a rails project, but it is not working for me on OSX, because the ruby standard library (which is located in my /usr/lib/ruby/1.8) is not in my $LOAD_PATH once rails boots.

If I just run irb outside of rails it is there.

Where/What do I need to config?

Brad The App Guy
  • 16,255
  • 2
  • 41
  • 60

1 Answers1

1

I suppose to have ruby and rubygems by macport.

I advise you to use rvm it's really great and help to manage your LOAD_PATH

With MacOS, it's better to save all your gem in your user home not in root.

shingara
  • 46,608
  • 11
  • 99
  • 105