Update personal_conferences_controller.rb

This commit is contained in:
chiu 2019-08-15 10:46:07 +08:00
parent 8b0a5eda8b
commit 3c62527929
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"), params[:keywords])}
writing_conferences_show = writing_conferences_temp.select {|value| search_all_words((value.send("publication_date").strftime("%Y/%m/%d") rescue ""), 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"