Hello RoR Developers,
do you know how can I change the directory of database.yml. I want to call it from another directory, and also want to reach the directory name like #{RAILS_ROOT}
thanks for any commend and help..
Hello RoR Developers,
do you know how can I change the directory of database.yml. I want to call it from another directory, and also want to reach the directory name like #{RAILS_ROOT}
thanks for any commend and help..
Try:
Rails::Initializer.run do |config| config.database_configuration_file = File.join(RAILS_ROOT, “anotherdir”, “database.yml”) end
sishen wrote:
Try:
Rails::Initializer.run do |config| config.database_configuration_file = File.join(RAILS_ROOT, "anotherdir", "database.yml") end
On Wed, Feb 27, 2008 at 4:11 PM, Ibrahim Dogru <
thank you very much...