From c09617e2dac3b061eb9b5fcb75647b5bc30793a6 Mon Sep 17 00:00:00 2001 From: chiu Date: Tue, 13 Aug 2019 17:33:00 +0800 Subject: [PATCH] Update personal_journals_controller.rb --- app/controllers/personal_journals_controller.rb | 3 --- 1 file changed, 3 deletions(-) diff --git a/app/controllers/personal_journals_controller.rb b/app/controllers/personal_journals_controller.rb index c4b493f..b98c0b4 100644 --- a/app/controllers/personal_journals_controller.rb +++ b/app/controllers/personal_journals_controller.rb @@ -89,9 +89,6 @@ class PersonalJournalsController < ApplicationController choice_value.unshift("paper_title") choice_default = OrbitHelper.params[:locale]!='en' ? "——選取分類——" : "——select class——" choice_show.unshift(choice_default) - journal_papers_count = journal_papers1.count - journal_papers_temp = journal_papers1.take(journal_papers_count) - journal_papers_show = journal_papers_temp.select {|value| value["paper_title"][OrbitHelper.params[:locale]].include? "1"} select_text = params[:locale]!='en' ? "搜尋類別:" : "search class:" search_text = params[:locale]!='en' ? "關鍵字搜尋:" : "word to search:" {