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

Support :multiple option on input tags that also have :index #8108

Conversation

nertzy
Copy link
Contributor

@nertzy nertzy commented Nov 2, 2012

When you have an explicit index set, then when you build an input tag with :multiple => true, it doesn't add [] to the end of its name, although it should.

@@ -1,5 +1,9 @@
## Rails 4.0.0 (unreleased) ##

* Support :multiple => true on an input tag that also has :index set
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We don't need this changelog entry since this feature was added on master only.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh, OK, I'll remove it.

So 4.0 is on a separate branch now? I'd like to get this in for Rails 4, since it's a bug fix. Should I backport it and make a separate pull request for that as well?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

4.0 is still master. Is this issue present on 3-2-stable as well? If so we will need the CHANGELOG entry.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes it is present on all versions of Rails 3.

OK I'll make a separate pull for 3-2-stable with a CHANGELOG entry, would that be enough?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You don't need to. I'll merge this and cherry-pick with the CHANGELOG message that you added here.

But we will need to wait the 3.2.9 release to backport it.

Thanks

When you have an explicit index set, then when you build an input tag
with :multiple => true, it doesn't add [] to the end of its name, although
it should.
rafaelfranca added a commit that referenced this pull request Nov 2, 2012
…nstance-tag

Support :multiple option on input tags that also have :index
@rafaelfranca rafaelfranca merged commit c449462 into rails:master Nov 2, 2012
rafaelfranca added a commit that referenced this pull request Nov 8, 2012
…nstance-tag

Support :multiple option on input tags that also have :index
Conflicts:
	actionpack/lib/action_view/helpers/tags/base.rb
	actionpack/lib/action_view/helpers/tags/collection_check_boxes.rb
rafaelfranca added a commit that referenced this pull request Nov 8, 2012
robotex82 pushed a commit to robotex82/rails that referenced this pull request Nov 8, 2012
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.

None yet

2 participants