From: Henrik Nyh Date: 2008-10-15T04:21:23+09:00 Subject: Re: User home On Tue, Oct 14, 2008 at 6:31 PM, Jesús Gabriel y Galán wrote: > On Tue, Oct 14, 2008 at 6:19 PM, Kless wrote: >> Is there any method to get the value of user home which in Linux would >> be stored in $HOME? > > ENV['HOME'] > >> Valid for windows and mac osx too Works fine in OS X. Rails has a Dir.user_home which is more complicated. No idea if that works on Windows, but the source is here: http://noobkit.com/show/ruby/rails/rails-stable/rails/dir/user_home.html