For example:
class User < ActiveRecord::Base
has_many :cars
end
# name :string(255)
class Car < ActiveRecord::Base
belongs_to :user
end
How would you use pg_search to do a full text search of the names of cars that only a single User instance has (versus all cars)?
I'm the author of pg_search. It sounds like what you want to do is chain a pg_search_scope onto an association: