Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Ruby > Looking for a way to access ActiveRecord data in a rails app fromanother non-rails app with $SAFE=1

Reply
Thread Tools

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

 
 
Xeno Campanoli
Guest
Posts: n/a
 
      05-29-2008
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

 
Reply With Quote
 
 
 
 
Xeno Campanoli
Guest
Posts: n/a
 
      05-29-2008
Xeno Campanoli 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...?

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
ActiveRecord ids differ outside of rails for rails data table? Xeno Campanoli Ruby 1 06-03-2008 06:57 PM
creating a rails app within a rails app libsfan01 Ruby 2 02-05-2007 07:53 AM
Rails: Multi-Column Primary Key for ActiveRecord Brian Takita Ruby 5 05-03-2005 06:23 AM
Rails question - ActiveRecord::Base#composed_of Dave Burt Ruby 3 02-12-2005 07:22 PM
[Rails] ActiveRecord modelling problem Dmitry V. Sabanin Ruby 3 10-07-2004 11:30 AM



Advertisments