josevalim/inherited_resources — Issue #208: How can i change collection helper with DESC or ASC order?
Author: geekontheway
Created: 2012-02-20 03:04:14+00:00
State: open

In my DownloadsController, i wrote:

protected
def collection
@downloads ||= end_of_association_chain.order_by(:published_at.desc)
end

But it seems not work.

Any one could help me?Very thanks!