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_tag outputs value of include_blank into HTML #1646

Closed
tdreyno opened this issue Apr 4, 2014 · 1 comment
Closed

select_tag outputs value of include_blank into HTML #1646

tdreyno opened this issue Apr 4, 2014 · 1 comment

Comments

@tdreyno
Copy link

tdreyno commented Apr 4, 2014

Looks like the include_blank key isn't getting removed from the hash before it is passed along to the tag helper.

This must have changed between 0.12.0 and 0.12.1.

Inputs:

<%= select_tag :colors, options: ["red", "blue", "blorange"], include_blank: "Choose a color" %>

0.12.1 output:

    <select name="colors" include_blank="Choose a color"><option value="">Choose a color</option>
    <option value="red">red</option>
    <option value="blue">blue</option>
    <option value="blorange">blorange</option>
    </select>
@ujifgc ujifgc closed this as completed in e57e26e Apr 5, 2014
@ujifgc
Copy link
Member

ujifgc commented Apr 5, 2014

Thanks for your report.

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

No branches or pull requests

2 participants