0
태그로 주문을 검색하고 싶지만 태그는 고객과 연관되어 있습니다 .... Ransack으로 가능합니까?멀리 떨어진 테이블에 대한 Ransack 검색?
Order.rb
Class Order < ActiveRecord::Base
belongs_to :customer
....
Customer.rb
Class Customer < ActiveRecord::Base
has_many :orders
has_many :customers_tags
has_many :tags, through: :customers_tags
....
Tag.rb
Class Tag < ActiveRecord::Base
has_many :customers_tags
has_many :customers, through: :customers_tags
....