你好,我有一个模范学生,它有一个字段调用 admission_end:date 我想定义一个范围来帮助我让所有在特定日期结束录取的学生尝试这个但我的问题是如何让它显示我的观点
这是我定义的范围
attr_accessible :address, :address, :admission_ends, :certificate, :country, :date_of_birth, :diploma_id, :email, :first_name, :full_name, :gender, :how_did_you_hear_about_us, :lg_area, :middle_name, :other, :relationship_with_applicant, :state_of_origin, :surname, :telephone_number, :telephone_number, :title, :title, :image, :amount_deposit, :balance, :full_payment, :next_payment, :part_payment, :programme, :mode_of_payment
belongs_to :admin
mount_uploader :image, ImageUploader
belongs_to :diploma
belongs_to :payment
scope :admission_due, -> { where("students.admission_ends >= ?", Date.today) }