Forum: Ferret search entire database

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
081518952784b4fd06c4bae92c8a2566?d=identicon&s=25 Shyam Vijayakumar (vshyam121)
on 2008-06-20 19:56
Hi,
  is there any way to search through all the models and display it
without having to loop through all the columns of each table?

I looked around and the only thing I could find was to specify :models
=> :all as an option when I call find_by_contents on a model. But that
doesn't work for me. It keeps only searching the model that I call
find_by_contents on. But even if that works I don't want to have to go
through all my models (I have a lot of them) and loop through each
column to output the search results.

Any easy methods to do this?

Thanks in advance.
This topic is locked and can not be replied to.