Hallo -- I have a couple of YAML files that my code needs to read in a web app -- my problem is that I have no idea where to place these for access from everywhere in my app (tests & all) with a single filename.
So, for instance, I could write:
Code:
obj=YAML.load_file(<filename>)
Where filename would be the same no matter where I called it from -- like maybe "app_root/shared/obj.yml".
Maybe this points out a larger issue I have with file organisation in ruby, a subject which I must admit I am not totally clear on.
Any & all help, advice, & tips are *greatly* appreciated!
Cheers,
doug.