Paul D. Kraus wrote: > I am trying to iterate over a hash but it only displays '#' for my key. > I know this is not the case because it outputs the correct number of lines > based on how many keys I have. If it were trully '#' it would only print > one > line. > > Here is the code that is producing the output... > <% @payment.batch.each do|key,value| %> > <li><%=key%> -> <%=value%></li> > <% end %> > > here is my output ... > > - # -> 1 > - # -> 1 What does view|source on the resulting Web page show you? I'm betting key is an object with no useful default to_s. -- James Britt "In physics the truth is rarely perfectly clear, and that is certainly universally the case in human affairs. Hence, what is not surrounded by uncertainty cannot be the truth." - R. Feynman