I have a Provider model which has 4 has_one relationships with Category, Country, State and City.
I use find_all to ge a list of all the providers, but need to be able to filter them by category, country, state and/or city by their name.
How would I, for example, get a list of the providers in US? The providers table has a foreign key to the countries table and that table has the name of the countries.
Thanks.