Ruby on Rails
Friday, September 13, 2019
I read this example for the form:
<%= p.file_field :avatar, :multiple => true, name: "post_attachments[avatar][]" %>
Why is the name argument necessary Why can't the controller just get the array from <%= p.file_field :avatar %> ?
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/596e6ab8-a045-4bfc-86cb-252bf487f296%40googlegroups.com.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment