jim/carmen — Issue #69: Show only some countries.
Author: RitvvijParrikh
Created: 2011-11-09 09:51:27+00:00
State: open

Hi,

We have a requirement to display in drop down only those countries where projects are already existing. For e.g. projects might be existing in only India, China and Afghanistan. So I'm running a query to get country_iso2 codes of India, China and Afghanistan from Projects table. Now I've to show the dropdown of these 3 countries.

How can I leverage Carmen.countries to show only 3 countries? Is there such an option? How can I tweak below select to show only India, China, Afghanistan

= select(:filter, :country_iso2, Carmen.countries, :id => "profile_country", :selected => @country_iso2)