Problems while loading configuration files in Ruby on Rails -
i having problems while loading configuration file in yaml. have added following code in application.rb
file.
appconfig.setup |config| config[:env] = rails.env config[:uri] = "yaml://#{rails.root}/config/app_config.yml" end
but when try run server, shows following error.
bad uri(is not uri?): yaml:///path_to_project/config/app_config.yml (uri::invalidurierror)
how fix problem?
i use stable solution on production last 2 years called configatron
Comments
Post a Comment