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

php - How can I edit my code to echo the data of child's element where my search term was found in, in XMLReader? -

javascript - Iterate over array and calculate average values of array-parts -

jQuery Ajax Render Fragments OR Whole Page -