I need to write default action for the selection if user select “Please select” on dropdown menu on rails so how can I identify whether user have selected that??
Share
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.
The select helper generates an option tag with no specific value for the “Please select” entry. So the params hash gets assigned “Please select” for that param when you submit the form.