I have a table which holds a user's statistics, such as age, height, weight, etc.
| user_stats | | ------------- | | birthday | date | 2000-01-01 | | height | varchar | 6.0 | | weight | varchar | 200 |
Using Scout and Algolia, I want a user to be able to search for all of these attributes, and return only users that match.
In my form, I'm using
<select> menus to display the search options, such as...
<select name="age"> <option" value="20-30">20-30</option> <option value="31-40">31-40</option> </select>
So, if a user wanted to find people who were 17 years old, 6' tall and 200 lbs., how would I go about doing this in my controller?