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.
HABTM は Ransack でサポートされていますか?
モデルを持つ:
ransack を使用して、単一のカテゴリでショップを検索できますか? フォームはどのように見えますか?
あなたが使おうとしているフィールドは
:categories_id_eq
使い方はこんな感じ
<%= f.label :categories_id_eq, "Category" %> <%= f.collection_select :categories_id_eq, Category.order(:title), :id, :title %>