Forum: Ruby on Rails How do I allow users to search a database table?

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Jason Hsu, Android developer (Guest)
on 2013-07-10 01:39
(Received via mailing list)
I recently launched the new Rails-based version of Doppler Value
(  It profiles over 4000
stocks in terms of free cash flow and net liquid assets.

As you can see at, I know
to extract data from a table in a Postgres database and display it to

However, I'm looking for a way to provide a search form that allows
to create their own custom search of the stock database table and see
results.  Where can I find a good example of this?
A47e0a6beeb9d048ff054fc1c3a97418?d=identicon&s=25 Walter Davis (walterdavis)
on 2013-07-10 16:26
(Received via mailing list)
You might want to look at one or another of the search helper gems. This
one is nice:
Basically, any of these will extend ActiveRecord to give your views the
ability to construct custom search queries. This can be used to make
really detailed search forms that essentially reflect over your database

This topic is locked and can not be replied to.