Update personal_conferences_controller.rb
This commit is contained in:
parent
8b0a5eda8b
commit
3c62527929
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue