I just updated to R 381 on win32 but I've been doing this for a while.
Unfortunately you did spread some FUD on ruby-talk. I'll send some of
this to ruby-talk to clear it up.
Basically what I did was I downloaded ActiveRecord and ActiveSupport
from rubyforge.org. I'm using ActiveRecord 1.15.6 and ActiveSupport
1.4.4. These are the newest versions before the move to Rails 2.0. You
could probably do it with the 2.0 versions but I'm sticking back. Then
I copied the lib directories to the ruby/lib directory under shoes. If
you do this you'll notice they fit right in and don't look unusual at
all. After they are copied you can do a simple require 'active_record'
and use it as normal from within shoes. The key things to note here
are that 1. ActiveRecord depends on ActiveSupport and 2. Shoes
basically has its own copy of relevant ruby gems that you can manually
install new gems to.

If anyone is interested in getting ferret and acts_as_ferret from
within shoes for some awesome database indexing goodness you simply
need to extract the relevant lib files to the shoes ruby/lib folder
and then:
RAILS_ROOT = '.'
RAILS_ENV = 'development'
require 'acts_as_ferret'

RAILS_ROOT and RAILS_ENV need to be set to fool acts_as_ferret into
working correctly because it expects to be used from within rails.

-Garret Buell

Reply via email to