From: Daniel Schierbeck Date: 2006-07-29T03:40:10+09:00 Subject: Re: Using a '-' in a Key name in a Hash Andrew Knott wrote: > Ok, that's worked perfectly for the call... Unfortunately on the server > side I have a member of the same name in an Action Webservice Struct and > it's not liking the > > member :"remote-ip", :string > > at all... > > SyntaxError ((eval):1:in `member': compile error > (eval):1: parse error, unexpected '-', expecting '\n' or ';' > def remote-ip; @remote-ip; end > > I guess this might be bug in rails... No; "remote-ip" is here the name of a method and an instance variable, but neither can contain `-'. Daniel