On Sep 9, 5:05 pm, byrnejb <[email protected]> wrote:
> On Sep 9, 1:35 pm, Yehuda Katz <[email protected]> wrote:
>
> > You're passing an absolute path to require_relative. You can do
> > require_relative library.
>
> The path that gets sent to relative_root has this value:
>
> bin/../../lib/forex/hll_forex_ca_feed
>
> That does not appear to me to be an absolute path.

Taking your hint I ended up with this construct, which appears to
serve both 1.8 and 1.9 rubies.

require File.expand_path(File.dirname(__FILE__) + library)

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Core" 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-core?hl=en.

Reply via email to