ms
2011-Jul-21 14:25 UTC
Changing $LOAD_PATH, how using own directory for required libraries?
Hey, thanks for reading my post. I want Rails to use other load paths, but I don''t know how. Currently, Rails uses the files from the .rvm/.. directory. I want to copy the library files and change the load paths, how can I reach this? Besides, can you tell me, where Rails gets all the information about the necessary libraries/gems? Thank you very much, ms -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Ricardo Valeriano
2011-Jul-21 14:48 UTC
Re: Changing $LOAD_PATH, how using own directory for required libraries?
Hi there, About the load path, in Ruby you have an array with the "awkward" name $:. It represent your $LOAD_PATH and, as an array, it have the << method. You can add another paths to your load path this way. With rvm, you can generate copy of your gemset and such, i don''t exactly what you want, but this can be useful. If you are using bundler, the rails use the gems listed on the Gemfile on the root of your application. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-talk/-/MV58wxlyKkcJ. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.