0

The following (from the index-action of my activities-controller) has no effect on the order in which the entries are displayed:

@activities = Activity.order("updated_at").page(params[:page])

The .page-part is for the Kaminari-gem that does the pagination.

What am I missing?

The_Fritz
  • 452
  • 3
  • 17

1 Answers1

1

no, you are right. may be kaminari or somewhere else incorrect . please look over your Activity's default_scope.

Ankun
  • 434
  • 2
  • 10
  • Thanks a lot! Yes, the default_scope in the Activity-model was the reason. I totally forgot about that. – The_Fritz Apr 25 '12 at 08:50