# Problem with ActiveRecord v2 outside of rails

**URL:** <https://www.ruby-forum.com/t/problem-with-activerecord-v2-outside-of-rails/123728>\
**Category:** Rails\
**Created:** [December 20, 2007, 2:06am UTC](https://www.ruby-forum.com/t/problem-with-activerecord-v2-outside-of-rails/123728 "2007-12-20T02:06:00Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![petrjanda](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/ee7513/32.png) [@petrjanda](https://www.ruby-forum.com/u/petrjanda)\
**Post date:** [December 20, 2007, 2:06am UTC](https://www.ruby-forum.com/t/problem-with-activerecord-v2-outside-of-rails/123728/1 "2007-12-20T02:06:00Z")

</div>

Hi,  
I have a few scripts that use activerecord to access database. Some of  
the scripts also use acts\_as\_tree. While inside a Rails project i can  
install it with script/plugin, I can’t get my scripts to work.

What can I do?  
Thanks  
Petr

---

<div class="post-metadata">

**Author:** ![petrjanda](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/ee7513/32.png) [@petrjanda](https://www.ruby-forum.com/u/petrjanda)\
**Post date:** [December 20, 2007, 9:02am UTC](https://www.ruby-forum.com/t/problem-with-activerecord-v2-outside-of-rails/123728/2 "2007-12-20T09:02:11Z")

</div>

Please this is quite urgent, i welcome any suggestion. Cheers…

Petr
