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

Select options valid html #7025

Merged

Conversation

rustygeldmacher
Copy link

When a select tag is created for a field with errors, and that select
tag has :prompt or :include_blank options, then the inserted first
option will errantly have a <div class="field_with_errors"> wrapping
it.

Fixes issue #7017

When a select tag is created for a field with errors, and that select
tag has :prompt or :include_blank options, then the inserted first
option will errantly have a <div class="field_with_errors"> wrapping
it.

See rails#7017
@rafaelfranca
Copy link
Member

Seems good. I think we can merge.

@carlosantoniodasilva anything to add?

@rafaelfranca
Copy link
Member

@rustygeldmacher could you prepare an another pull request to master branch?

@rustygeldmacher
Copy link
Author

Sure thing... looks like master has this problem but worse, where each option has the <div class="field_with_errors"> wrapping it. I'm working on a fix.

@ghost ghost assigned rafaelfranca Jul 10, 2012
@rustygeldmacher
Copy link
Author

Just created pull request #7026 to fix this issue in master.

rafaelfranca added a commit that referenced this pull request Jul 10, 2012
@rafaelfranca rafaelfranca merged commit 3b1de4a into rails:3-2-stable Jul 10, 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