0
我想在默認值的Rails3中使用collection_select,但沒有空白選項。我正在使用以下行,但空白值不斷顯示。include_blank false不適用於Rails 3中的collection_select
f.collection_select(:user_id, @users, :id, :name, {:selected => current_user.id, :include_blank => false})