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.
on 2008-06-20 19:56
Please log in before posting. Registration is free and takes only a minute.
Existing account
(Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
Log in with Google account | Log in with Yahoo account
No account? Register here.