# Looking for a way to access ActiveRecord data in a rails app from another non-rails app with $SAFE=1

**URL:** <https://www.ruby-forum.com/t/looking-for-a-way-to-access-activerecord-data-in-a-rails-app-from-another-non-rails-app-with-safe-1/138936>\
**Category:** Ruby\
**Created:** [May 29, 2008, 4:40am UTC](https://www.ruby-forum.com/t/looking-for-a-way-to-access-activerecord-data-in-a-rails-app-from-another-non-rails-app-with-safe-1/138936 "2008-05-29T04:40:13Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Xeno\_C](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/x/958977/32.png) [@Xeno\_C](https://www.ruby-forum.com/u/Xeno_C)\
**Post date:** [May 29, 2008, 4:40am UTC](https://www.ruby-forum.com/t/looking-for-a-way-to-access-activerecord-data-in-a-rails-app-from-another-non-rails-app-with-safe-1/138936/1 "2008-05-29T04:40:13Z")

</div>

I only need to read the data, but I want to use AR if I can, because  
it’s what everything in the rails app uses, and I want to keep the whole  
area as simple and maintainable as possible. I don’t see anything in  
Rails that allows special access. Perhaps if I make a certain kind of  
account will it let me in? It appears with $SAFE=1 I get locked out no  
matter what.

xc

---

<div class="post-metadata">

**Author:** ![Xeno\_C](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/x/958977/32.png) [@Xeno\_C](https://www.ruby-forum.com/u/Xeno_C)\
**Post date:** [May 29, 2008, 2:23pm UTC](https://www.ruby-forum.com/t/looking-for-a-way-to-access-activerecord-data-in-a-rails-app-from-another-non-rails-app-with-safe-1/138936/2 "2008-05-29T14:23:48Z")

</div>

Xeno C. wrote:

> I only need to read the data, but I want to use AR if I can, because  
> it’s what everything in the rails app uses, and I want to keep the whole  
> area as simple and maintainable as possible. I don’t see anything in  
> Rails that allows special access. Perhaps if I make a certain kind of  
> account will it let me in? It appears with $SAFE=1 I get locked out no  
> matter what.
> 
> xc

It occurs to me that perhaps I should be configuring my Mongrel to just  
run without mod\_ruby, if possible. I don’t need public internet speeds,  
and presumably with an old fashion load-all-every-page configuration, I  
would by default get $SAFE = 0 anyway. Anyone know if Mongrel even does  
this? Obviously webrick does. Perhaps I should just run my production  
in webrick…?
