Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Ransack gemは、同じ値に対して複数の列のSQL検索を生成できますか?
たとえば、「名または姓に「James」が含まれているユーザー」などです。
はい、ここに例があります:
MyModel.search(:firstname_or_lastname_cont => "James").result