Update personal_conferences_controller.rb

This commit is contained in:
chiu 2019-08-15 10:33:32 +08:00
parent 1d60d68aed
commit 8b0a5eda8b
1 changed files with 1 additions and 1 deletions

View File

@ -40,7 +40,7 @@ class PersonalConferencesController < ApplicationController
when "period"
writing_conferences_show = writing_conferences_temp.select {|value| search_all_words(value.duration, params[:keywords])}
when "publication_date"
writing_conferences_show = writing_conferences_temp.select {|value| search_all_words(value.send("publication_date").strftime("%Y/%m/%d").collect{|x| x.title}.join(', '), params[:keywords])}
writing_conferences_show = writing_conferences_temp.select {|value| search_all_words(value.send("publication_date").strftime("%Y/%m/%d"), params[:keywords])}
when "author_type"
writing_conferences_show = writing_conferences_temp.select {|value| search_all_words(value.conference_author_types.collect{|cat| cat.title}.join(", "), params[:keywords])}
when "language"