]> git.openstreetmap.org Git - rails.git/commit
Update country.rb
authorardean80 <ardean80@hotmail.com>
Fri, 16 Feb 2018 13:43:53 +0000 (14:43 +0100)
committerGitHub <noreply@github.com>
Fri, 16 Feb 2018 13:43:53 +0000 (14:43 +0100)
commit552a47118883e53e2e93a677a94ec231f71e40bc
tree3f17153516b83e4fb4cbd9c868ce6cabc768a7e0
parent58a0184fc00ad85103367fe9877ab5af3a9aeb03
Update country.rb

Without adding "Rails.root.join(...)" (or something else returning a complete path to the countries.xml file) this error occurred:
"No such file or directory @ rb_sysopen - config/countries.xml"
I think it happened because it could not find that file through a relative path.
lib/country.rb