我有以下collection_select的代码
<%= f.collection_select :customer_id, Customer.all, :id, :name, options ={:prompt => "-Select a Customer"}, :style=>'width:210px;'%><br />
问题:- 如果我选择一个客户然后刷新页面,collection_select 不会刷新列表,但会显示先前选择的项目。我如何确保当我刷新/重新加载页面时,即使 collection_select 也会刷新?需要指导(抱歉英语不好)