codeforboston / legalhousing

MIT License
10 stars 27 forks source link

Add drop down filter and search box filter to Index page #152

Closed smithWEBtek closed 6 years ago

smithWEBtek commented 6 years ago

The dropdown filter uses the existing list of Phrases and returns the subset of listings that contain that phase.

The search box filter does the same, (returns the subset of listings that contain the entered phrase) for any text phrase entered, with the exception of non-letter or non-number characters.

Both functions return the results in a new view: views/listings/filtered.html.erb