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
On Wed, Feb 27, 2008 at 4:11 PM, Ibrahim D. <
sishen wrote:
Try:
Rails::Initializer.run do |config|
config.database_configuration_file = File.join(RAILS_ROOT,
“anotherdir”, “database.yml”)
endOn Wed, Feb 27, 2008 at 4:11 PM, Ibrahim D. <
thank you very much…
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs