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

Popular posts from this blog

java - UnknownEntityTypeException: Unable to locate persister (Hibernate 5.0) -

python - ValueError: empty vocabulary; perhaps the documents only contain stop words -

ubuntu - collect2: fatal error: ld terminated with signal 9 [Killed] -