       |> Keyword.put_new(:name, name_from(form, field) <> "[]")
       |> Keyword.put_new(:multiple, "")
 
-    options = options_for_select(values, "", Enum.map(multiple, &html_escape/1))
+    options = options_for_select(options, "", Enum.map(multiple, &html_escape/1))
     content_tag(:select, options, opts)
   end
 

          <option value="2">Power User</option>
          </select>


      multiple_select(form, :roles, ["Admin": 1, "Power User": 2], value: [1])
      #=> <select id="user_roles" name="user[roles]">
          <option value="1" selected="selected" >Admin</option>
          <option value="2">Power User</option>
          </select>

  ## Options

    * `:value` - an Enum of values used to select given options.

    * `:default` - the default value to use when none was given in
      `:values` and none was available in the model

  All other options are forwarded to the underlying HTML tag.
  """
  def multiple_select(form, field, values, opts \\ []) do
    {default, opts}  = Keyword.pop(opts, :default, [])
    {multiple, opts} = Keyword.pop(opts, :value, value_from(form, field) || default)


      |> Keyword.put_new(:id, id_from(form, field))
      |> Keyword.put_new(:name, name_from(form, field))

    options = options_for_select(options, prefix, html_escape(value))
    content_tag(:select, options, opts)
  end

