How to load the database.yml file again during runtime?

Juan Tarquino
Sat, 07 Jun 2008 20:33:01 -0000

Hi, I have an application that allows the user to make changes to the
database.yml file so that he can connect to another database. However I
have to manually restart the application to make the changes in
database.yml effective. My question is: is there any way of making the
changes in database.yml effective from the application code? or at
least, is there any way of restarting the application from the
application code?

Thanks
--
Posted via http://www.ruby-forum.com/.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org