getting user.home in ruby By: Sharad Jain|January 22, 2009No Comments If File.open(“~/etc/my_config_file”) doesn’t work for you, try File.open(File.expand_path(“~/etc/my_config_file”))Not sure, why File.open() does not handle this internally?Share/Bookmark
because ~ is part of bash, not ruby