From: Adam Kennedy Date: 2013-01-19T06:18:19+09:00 Subject: Re: Adding file directory automatically Right ran the code saying that item is not a hash . Then inspecting the item outputs: ["david"] This is correct as the hidden value is david and the hash outputs all of the correct names which I have specified in the hash. The only thing that i can see is that the item is in the format of ["david"], would this be a problem when the has is looking for "david" does it could the square brackets as part of the string? Thanks Adam k -- Posted via http://www.ruby-forum.com/.