[Rails] Search Multiple Categories

2013-09-02 Thread zachariah ngonyani
I have a rails app that lists different law firms. These law firms can be categorized by Practice Area and Location. Now i need to implement a search, where people can select from a select option a Location AND a Practice Area and find all Law Firms that are in that selected Location which

Re: [Rails] Search Multiple Categories

2013-09-02 Thread Emil S
Just use the boolean operator AND in your search query. This should work both for simple SQL queries on your database and for queries on hosted search servers which ( thinking sphix , cloudsearch , etc ) . What have you tried so far ? On 31 August 2013 06:55, zachariah ngonyani

Re: [Rails] Search Multiple Categories

2013-09-02 Thread Walter Lee Davis
On Aug 30, 2013, at 9:25 PM, zachariah ngonyani wrote: I have a rails app that lists different law firms. These law firms can be categorized by Practice Area and Location. Now i need to implement a search, where people can select from a select option a Location AND a Practice Area and