I am pretty new to Ruby on Rails, but have been running into difficulty with getting search to do what I want. What I plan to do is to have, say, 10 fields in a form with a submit button. The user can select which ones they fill out, and when they click submit the database is searched appropriatly. That is, if the name and state fields were both filled it, a page would display entries that had that name who also had the state. Please let me know if there is a this search ''utitlity'' out there for RoR. Thanks. ~Shawn -- Posted via http://www.ruby-forum.com/.
On Wed, 2006-07-26 at 19:28 +0200, Shawn wrote:> I am pretty new to Ruby on Rails, but have been running into difficulty > with getting search to do what I want. > > What I plan to do is to have, say, 10 fields in a form with a submit > button. The user can select which ones they fill out, and when they > click submit the database is searched appropriatly. That is, if the > name and state fields were both filled it, a page would display entries > that had that name who also had the state. > > Please let me know if there is a this search ''utitlity'' out there for > RoR. Thanks.----- this fills the bill... http://brainspl.at/articles/2006/06/30/new-release-of-ez_where-plugin Craig
> Please let me know if there is a this search ''utitlity'' out there for > RoR. Thanks.You might also consider the acts_as_ferret plugin. I''ve just set this up recently to do something similar to what you''re suggesting, and have found it to be very useful. http://projects.jkraemer.net/acts_as_ferret/ The people at http://www.ruby-forum.com/forum/5 have also been very helpful. Regards, Chris -- Posted via http://www.ruby-forum.com/.