ruby on rails - required: true on text_field_tag does not work -
i have text field tag , reason cannot use html5 validations
= text_field_tag :email, params[:email], required: true, placeholder: "search user"
the html output field shows required="required" it's there can still submit search form emtpy field.
what doing wrong?
Comments
Post a Comment