This project is archived and is in readonly mode.

#6705 new
Daniel Lopes

I think select_tag should also have a prompt like select.

Reported by Daniel Lopes | April 16th, 2011 @ 02:52 AM

I'm creating this ticket to send a patch to make select_tag behave like select method from form_builder's.

I tried to use prompt in select_tag but it didn't work but include_blank works (even without any documentation about). In the source select_tag accepts include_blank as boolean or as a string and the string behaves like the prompt of form_builder.select.

I think the api should be the same to avoid mistakes and this should be documented, so I did a small patch to fix these problems.

Comments and changes to this ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

<h2 style="font-size: 14px">Tickets have moved to Github</h2>

The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>

People watching this ticket

Attachments

Pages