From: "Nathaniel S. H. Brown" Date: 2005-11-20T14:49:06+09:00 Subject: Re: Environment Variable for Ruby on Rails You can use the magical .inspect on the request.env hash like so: request.env.inspect to find out anything about the internals of a hash. script/console will work pretty well for that kind of debugging. Warmest regards, Nathan. -------------------------------------------------------------- Nathaniel S. H. Brown Toll Free 1.877.4.INIMIT Inimit Innovations Phone 604.724.6624 www.inimit.com Fax 604.444.9942 > -----Original Message----- > From: TomRossi7 [mailto:tomrossi7@gmail.com] > Sent: November 19, 2005 8:07 PM > To: ruby-talk ML > Subject: Environment Variable for Ruby on Rails > > Is there an entry in the request.env hash for the host > header? I can parse the request.env["REQUEST_URI"], but I > was just wondering. I couldn't find any documentation on the > contents of that hash -- > http://api.rubyonrails.com/classes/ActionController/Base.html > appears to only show a couple of the keys. > > Thanks! > Tom > >