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

@ -8,8 +8,7 @@ class SeminarsController < ApplicationController
time_now = Time.now 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, "seminars" => seminars,
'time_now' => time_now, 'time_now' => time_now,