Update personal_conferences_controller.rb
This commit is contained in:
parent
1d60d68aed
commit
8b0a5eda8b
|
@ -40,7 +40,7 @@ class PersonalConferencesController < ApplicationController
|
||||||
when "period"
|
when "period"
|
||||||
writing_conferences_show = writing_conferences_temp.select {|value| search_all_words(value.duration, params[:keywords])}
|
writing_conferences_show = writing_conferences_temp.select {|value| search_all_words(value.duration, params[:keywords])}
|
||||||
when "publication_date"
|
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"
|
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])}
|
writing_conferences_show = writing_conferences_temp.select {|value| search_all_words(value.conference_author_types.collect{|cat| cat.title}.join(", "), params[:keywords])}
|
||||||
when "language"
|
when "language"
|
||||||
|
|
Loading…
Reference in New Issue