forked from spen/seminar
fix sort error
This commit is contained in:
parent
e67cb911de
commit
125a0879ec
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue