Finally I solved it! The problem was that I wasn't passing an array, the solution is in the form. the new form should be like:
<% @emails.each do |email| %>
<%=f.input "email[#{email}]", :as => :text, :as => :hidden, :input_html => { :value => ""} %>
<% end %>