次のように、ユーザー入力を配列として受け取るフィルタリングアルゴリズムを作成しています
@keywords = [['undergrad','grad'],['SAT', 'GPA'], ['Stanford']]
データベースのビデオテーブルなど、テーブルをクエリします。テーブルには、コンマで区切られたいくつかのタグを含む文字列フィールドがあります。
ロジックは次のとおりです。
In all videos, if the tags include "undergrad", "grad", returned those videos;
In the returned videos, if the tags include "SAT", "GPA", returned those videos;
In the returned videos, if the tags include "Stanford", returned those videos;
Rails での実装に関するヘルプはありますか?