From: Andrew Knott Date: 2006-07-29T00:40:36+09:00 Subject: Re: Using a '-' in a Key name in a Hash Thanks a lot! Sean O'halpin wrote: > On 7/28/06, Andrew Knott wrote: >> >> >> This ofcourse doesn't work right now because I can't have a '-' in a key >> name? Is there any way around this or am I screwed? >> >> thanks so much for any help. >> >> Andrew >> > To include non-identifier characters in a symbol, use the quoted form, > i.e. :"remote-ip" => request.remote_ip > > Regards, > Sean -- Posted via http://www.ruby-forum.com/.