rail 选择上拉框赋值

rail 选择下拉框赋值在edit中不用%f.select%的情况下给选择下拉框赋值。%n100%%select_tag edbgco

rail 选择下拉框赋值
在edit中不用<%=f.select  %>的情况下给选择下拉框赋值。
<%n=100%>

<%=select_tag 'edbgcountry_id#{n}', options_for_select(  Country.all.collect {|p| [ p.name, p.id ]},cad_resum_edbg.country_id )%>

这中情况能正常显示但传到后台的参数为:edbgcountry_id#{n},#{n}读不出来。

如下这中方法可以
<%=select( "workcountry_id#{n}","",Country.find(:all).collect {|p| [ p.name, p.id ] },:selected=>cad_resum_work.country_id)%>