How do I sort in Rails view but without displaying any duplicate values?
I have the following ERB code.
<% @todos.each do |todo| %>
<h1><%= todo.due %></h1>
<br />
<%= todo.description %><b><%= todo.list %></b>
<br />
<% end %>
And will output the following:
2011-03-09 10:39:00 -0600
My Todo For Today My List
2011-03-09 10:39:00 GMT
My Another Todo for Today My List 2
2011-03-09 10:39:00 GMT
And Another Todo for Today My List
However, how do I make it output with the following format in Rails?
2011-03-09 10:39:00 GMT
My Todo For Today My List
And Another Todo for Today My List
My Another Todo for Today My List 2