我有select_tag
options_from_collection_for_select
= select_tag "[recipient_tokens]", options_from_collection_for_select(User.where(:id => params[:users]), :id, :email, params[:users]), :size => "#{params[:users].size}"
但我无法使用select
simple form
答案 0 :(得分:0)
= f.input "[recipient_tokens]", collection: User.where(:id => params[:users]), label_method: 'email', include_blank: false