@ -1029,20 +1029,19 @@ class PollsController < ApplicationController
end
#搜索
# if search_content.present?
# @poll_users_list = @poll_users_list.joins(user: :user_extension).where("CONCAT(lastname, firstname) like ? OR student_id like ?", "%#{search_content}%", "%#{search_content}%")
# end
ifsearch_content.present?
@poll_users_list=@poll_users_list.joins(user::user_extension).where("CONCAT(lastname, firstname) like ? OR student_id like ?", "%#{search_content}%", "%#{search_content}%")