Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix explicit names on multiple file fields #10106

Merged

Conversation

rmm5t
Copy link
Contributor

@rmm5t rmm5t commented Apr 5, 2013

(This is relatively the same as #10105 but against the master branch.)

If a file field tag is passed the multiple option, it is turned into an array field (appending "[]"), but if the file field is passed an explicit name as an option, leave the name alone (do not append "[]").

Fixes #9830

@rafaelfranca
Copy link
Member

Seems good. Could you add a CHANGELOG entry?

If a file field tag is passed the multiple option, it is turned into an
array field (appending "[]"), but if the file field is passed an
explicit name as an option, leave the name alone (do not append "[]").

Fixes rails#9830
@rmm5t
Copy link
Contributor Author

rmm5t commented Apr 5, 2013

@rafaelfranca Sure thing. Changelog entry added and squashed.

rafaelfranca added a commit that referenced this pull request Apr 5, 2013
…elds-master

Fix explicit names on multiple file fields
@rafaelfranca rafaelfranca merged commit 3d961ab into rails:master Apr 5, 2013
@carlosantoniodasilva
Copy link
Member

Nice, thanks @rmm5t 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Custom name for file_field is incorrect when using :multiple => true
3 participants