Hello I trying this search
pg_search_scope :advance_search, against: [:title, :place, :category],
using: { tsearch: { dictionary: "spanish"} }
def self.searchadv(title, place, category)
advance_search(:title => title, :place => place, :category => category)
end
I could not make this work, I always get cero records, but I have records
with the parameters I'm passing. By the way no all the parameter need to be
present in the passing, for example I can search just using the title, o
title and place or place or category or all together.
Thanks for your help, I really need it.
--
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
To view this discussion on the web visit
https://groups.google.com/d/msg/rubyonrails-talk/-/MOl1Qb3Dyp4J.
For more options, visit https://groups.google.com/groups/opt_out.