I use simple_form in my app.
How do i give the blank value in my selects a different text than “” ?
I just find an option to include blank or not.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
It depends on how you are constructing your options for select. If you’re doing it like the code below, just pass a string into the :include blank.
If you’re setting the options with a options_for_select(), then you can do something like the following:
With the value="" being the second value in the array and the name that shows up in the dropdown being first. So in your case, you could change the second answer to look like this: