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

Discussion in 'Ruby' started by Xeno Campanoli, May 29, 2008.

  1. 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
     
    Xeno Campanoli, May 29, 2008
    #1
    1. Advertisements

  2. Re: Looking for a way to access ActiveRecord data in a rails appfrom another non-rails app with $SAFE=1

    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...?
     
    Xeno Campanoli, May 29, 2008
    #2
    1. Advertisements

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Gabriel Rossetti
    Replies:
    0
    Views:
    1,793
    Gabriel Rossetti
    Aug 29, 2008
  2. Replies:
    1
    Views:
    525
    Brian Candler
    Aug 12, 2003
  3. Aredridel

    Not just $SAFE, but damn $SAFE

    Aredridel, Sep 2, 2004, in forum: Ruby
    Replies:
    19
    Views:
    507
  4. libsfan01
    Replies:
    2
    Views:
    252
    Jan Svitok
    Feb 5, 2007
  5. Xeno Campanoli
    Replies:
    1
    Views:
    213
    Xeno Campanoli
    Jun 3, 2008
  6. Iñaki Baz Castillo
    Replies:
    4
    Views:
    184
    Iñaki Baz Castillo
    Aug 11, 2008
  7. Josh Cheek
    Replies:
    0
    Views:
    417
    Josh Cheek
    May 27, 2011
  8. Replies:
    5
    Views:
    336
    Chris Angelico
    May 14, 2014
Loading...