The SearchController should take colors and card types into account.
Appropriate scopes will need to be added to the Card model and used in the SearchController.
Note that the dropdowns for Color and Type in the search form allow multiple options to be selected. The scopes should match if any of the options appear in a card's colors or card_type columns.
The SearchController should take colors and card types into account.
Appropriate scopes will need to be added to the Card model and used in the SearchController.
Note that the dropdowns for Color and Type in the search form allow multiple options to be selected. The scopes should match if any of the options appear in a card's
colors
orcard_type
columns.