In my project model
def incomplete @clients = current_user.clients.find_all_by_completed(false).paginate (:page => params[:page], :per_page => 10, :order => 'started_on DESC') end
For some reason, it doesn't order start_on downstream. However, the procedure in another method
def all @clients = current_user.clients.paginate(:page => params[:page], :per_page => 25, :order => 'started_on DESC') end
So, I assume that using find_all_by_completed discards paginate. I am using will-paginate btw. Any help?
source share