Default value for collection_select

Hi all,

Can we use collection_select with default selected option. I am
implementing countries and its corresponding states dropdown through
Ajax and I have used collection_select method to select countries. Now
for editing point of view I want the country which is selected earlier
should come. Please let me know if someone has any idea about this.

Thanks
Ruchita S…

Hi Ruchita

try using collection_select_with_current. and also you should give the
value in this as option