diff --git a/app/helpers/preferences_helper.rb b/app/helpers/preferences_helper.rb index d27f8bf..19fa664 100644 --- a/app/helpers/preferences_helper.rb +++ b/app/helpers/preferences_helper.rb @@ -27,7 +27,8 @@ module PreferencesHelper end if @preference.term conditions.push "#{sort_col} LIKE ?" - params.push "%#{@preference.term}%" + search_term = ActiveSupport::Inflector.transliterate(@preference.term) + params.push "%#{search_term}%" end [ conditions.join(" AND ") ] + params end