Environment + DB Connection

Hello Experts,

Is there way to disable DB connection to load rails, when i need i can
connect manually?
That too in production mode.

Thanks,
Bala

On Sat, Sep 27, 2008 at 2:32 PM, Bala [email protected] wrote:

Hello Experts,

Is there way to disable DB connection to load rails, when i need i can
connect manually?
That too in production mode.

I’m not entirely sure what you mean by this. Could you elaborate more?

Robby

–
Robby R.
Chief Evangelist, Partner

PLANET ARGON, LLC
design // development // hosting

http://www.robbyonrails.com/
aim: planetargon

+1 503 445 2457
+1 877 55 ARGON [toll free]
+1 815 642 4068 [fax]

By default all the adapters will load to connect with Rails initially,
so i dont want to connect with any database when rails initialization.

Just i want to load Home page without database connection. So that i can
connect to any kind of db which i’ll provide by user input as db,
username,
password
and host.

Thanks,
Bala

2008/9/28 Robby R. [email protected]

I’m not entirely sure what you mean by this. Could you elaborate more?

http://www.planetargon.com/
http://www.robbyonrails.com/
aim: planetargon

+1 503 445 2457
+1 877 55 ARGON [toll free]
+1 815 642 4068 [fax]

–
“Smile while you cry.”

“There are only two tragedies in life: one is not getting what one
wants,
and the other is getting it.”

Thanks a lot Mislav,

It really helped me a lot. So thankfull to you.

Thanks,
Bala

2008/9/29 Mislav Marohnić [email protected]

For more questions like this, post to the rubyonrails-talk mailing list,
since this is a usage question.

Good luck,

Mislav

–
“Smile while you cry.”

“There are only two tragedies in life: one is not getting what one
wants,
and the other is getting it.”

On Sat, Sep 27, 2008 at 23:07, Bala [email protected] wrote:

Is there way to disable DB connection to load rails, when i need i can
connect manually?
That too in production mode.

Subclass the Rails::Initializer and override the initialize_database
method: http://pastie.org/280933

For more questions like this, post to the rubyonrails-talk mailing list,
since this is a usage question.

Good luck,

Mislav