# Using AAF with ActiveRecord outside of Rails?

**URL:** <https://www.ruby-forum.com/t/using-aaf-with-activerecord-outside-of-rails/115183>\
**Category:** Ferret\
**Created:** [September 21, 2007, 12:16pm UTC](https://www.ruby-forum.com/t/using-aaf-with-activerecord-outside-of-rails/115183 "2007-09-21T12:16:22Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Stuart\_Hungerford](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/b38774/32.png) [@Stuart\_Hungerford](https://www.ruby-forum.com/u/Stuart_Hungerford)\
**Post date:** [September 21, 2007, 12:16pm UTC](https://www.ruby-forum.com/t/using-aaf-with-activerecord-outside-of-rails/115183/1 "2007-09-21T12:16:22Z")

</div>

Hi,

My project has been happily using ActiveRecord outside of  
Rails for some time to populate various databases that are  
also used in Rails based websites.

I’d like to bring AAF into this setup to index new records  
that are added to the databases as they’re added.

Has anyone had any success in installing and using AAF  
with ActiveRecord but outside the Rails plugin support?

I may be going about this the wrong way too–if there’s a  
better way of creating and updating the indexes outside of  
Rails I’d also welcome any advice on that.

Thanks!

Stu

–

Stuart Hungerford  
ANUSF Data Intensive Projects

---

<div class="post-metadata">

**Author:** ![Stuart\_Hungerford](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/b38774/32.png) [@Stuart\_Hungerford](https://www.ruby-forum.com/u/Stuart_Hungerford)\
**Post date:** [September 23, 2007, 10:27am UTC](https://www.ruby-forum.com/t/using-aaf-with-activerecord-outside-of-rails/115183/2 "2007-09-23T10:27:58Z")

</div>

On Fri, Sep 21, 2007 at 04:02:22PM +1000, Stuart Hungerford wrote:

> with ActiveRecord but outside the Rails plugin support?  
> I’m not sure but imho this should be possible. From the top of my head,  
> aaf depends on RAILS\_ENV to be set to find the proper configuration  
> settings in RAILS\_ROOT/config/ferret\_server.yml - so you should set up  
> these variables accordingly.

Otherwise, requiring the plugin’s init.rb should be sufficient to get  
you going.

cheers,  
Jens

–  
Jens Krämer  
[http://www.jkraemer.net/](http://www.jkraemer.net/) - Blog  
[http://www.omdb.org/](http://www.omdb.org/) - The new free film database
