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

javascript - Trigger mouseenter when an animated element touches mouse -

json - Zend error Connection -

java - Using Spring @Transactional with a combination of readOnly and write, when does this entity get committed? -