Sure, I assume you do a query for the countries -> @countries = Country.find(:all)
for starters do this
@countries = Country.find(:all, :include => ‘languages’) which will get the languages in the same query.
Now, in the select you have options_for_select=[array] so you have to build an array that looks like this [“USA - English”,“France-French”,“England-English”,…]
I would suggest that you create a helper method
reponse array wil now look like this [“USA - English”,“France-French”,“England-English”,…]
so you can do <%= select_tag(:country, options_for_select(country_options(@countries))) %> and that will give you the select you wanted.