fix sort error

This commit is contained in:
chiu 2020-01-22 21:52:32 +08:00
parent e67cb911de
commit 125a0879ec
1 changed files with 2 additions and 3 deletions

View File

@ -7,9 +7,8 @@ class SeminarsController < ApplicationController
def index
time_now = Time.now
seminars = SeminarMain.filter_by_categories.desc(:signup_start_date).page(OrbitHelper.params[:page_no]).per(OrbitHelper.page_data_count)
seminars = SeminarMain.all.desc(:seminar_start_date).filter_by_categories
{
"seminars" => seminars,
'time_now' => time_now,