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

Popular posts from this blog

linux - Using a Cron Job to check if my mod_wsgi / apache server is running and restart -

actionscript 3 - TweenLite does not work with object -

jQuery Ajax Render Fragments OR Whole Page -