<% @user.dids.each_with_index{ |did, i| %>
<li><%=h @user.dids %></li>
<% } %>
显示的结果
#<Did:0x7fc4c55f4bf0>#<Did:0x7fc4c55f4ba0>#
<Did:0x7fc4c55f4b50>#<Did:0x7fc4c55f4b00>#
<Did:0x7fc4c55f4a88>#<Did:0x7fc4c55f4a10>#
<Did:0x7fc4c55f49c0>#<Did:0x7fc4c55f4970>
我几乎睡着了,没想到,告诉我如何显示哈希数据