I have client table that references a country table. When inserting a client, countries are provided to the user in a dropdown thus inserting an id of the country in the client table. How do you display the name of the country instead of Id on client show page.
I have client table that references a country table. When inserting a client, countries
Share
When dealing with select tags and a database table, I always find it better to use collection_select http://api.rubyonrails.org/classes/ActionView/Helpers/FormOptionsHelper.html#method-i-collection_select
you can use