I have @articles in my database and I want to query it but filter out the most recent article, then return all of the rest.
my controller is:
@articles = Article.find(:all, :order => "id desc")
and I am running a loop in my view:
<% @articles.each do |article| %>
...
<% end %>
I am imagining the view might be where I should apply some sort of filter, but can’t seem to find any documentation in my search so far.
hopefully an easy one?
thanks for your help!
s
Use