Hi,
I’ve got a recent articles section at the end of each article post, but i want to not display if it’s the current article.
At the moment this is the code im using:
<% blog.articles[0...3].each do |article| %>
<li><h5><%= link_to article.title, article %></h5>
<div class="articlesummary">
<%= article.summary %>
</div>
<span class="date"><%= article.date.strftime('%e %B %Y') %></span>
</li>
<% end %>
I’m guessing it’s something using delete_if == current_article
but im not too sure!
Any help would be great!