Gavin Sinclair
11/16/2004 11:13:00 PM
On Wednesday, November 17, 2004, 9:12:57 AM, David wrote:
> When I have multiple versions of a library in Rubygems, a normal
> require will fail to pick up the latest version, and I have to do a
> require_gem to use the library at all. Require works perfectly if
> there is only one version of the gem installed. I'm on ruby
> mswin32-1.8.2, with rubygems 0.8.1.
> [snip the most important part - d'oh!]
That's an activerecord naming issue. The gem is called 'activerecord'
but the library (what you need to require) is 'active_record'.
require_gem loads a gem. require loads a library.
Hope it works now.
Cheers,
Gavin