From f389fa90ea76250b6528a61c2b321eb4985a66c4 Mon Sep 17 00:00:00 2001 From: chiu Date: Fri, 16 Aug 2019 09:42:38 +0800 Subject: [PATCH] Update personal_patents_controller.rb fix error --- app/controllers/personal_patents_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/personal_patents_controller.rb b/app/controllers/personal_patents_controller.rb index 157be02..58aaed4 100644 --- a/app/controllers/personal_patents_controller.rb +++ b/app/controllers/personal_patents_controller.rb @@ -31,7 +31,7 @@ class PersonalPatentsController < ApplicationController when "language" patents_show = patents_temp.select {|value| search_all_words((!value.language.nil? ? t("#{value.language}") : ""), params[:keywords])} else - patentes_show = patents_temp.select {|value| search_all_words((value.send(params[:selectbox]).to_s rescue ""), params[:keywords])} + patents_show = patents_temp.select {|value| search_all_words((value.send(params[:selectbox]).to_s rescue ""), params[:keywords])} end if params[:page_no].nil? page_to_show = 1