socialforge/app/views/test/index.html.erb

17 lines
245 B
Plaintext

<h3>test</h3>
<% memos=Memo.where('author_id = 5 AND parent_id IS NOT NULL') %>
<% memos.each do |m|%>
<tr>
<% if Memo.find(m.parent_id).author_id != 5 %>
<td><%=m.subject%></td>
<% end %>
</tr>>
<% end %>
<hr/>
<hr/>