我试图在我的一个rails表单中关闭自动完成功能.这是我到目前为止所尝试的内容:
# add it at the form level = form_tag admin_sessions_path,autocomplete: "off" do
那没用.
# add it at the element level .panel = label_tag :email = email_field_tag :email,params[:email],autocomplete: 'off'
也没有那样做.
# add it to both = form_tag admin_sessions_path,autocomplete: "off" do # add it at the element level .panel = label_tag :email = email_field_tag :email,autocomplete: 'off'
当我访问我的表单时,我的电子邮件地址和已保存的密码已经填写完毕.我在这做错了什么?我喜欢铁轨,但它有时让我很生气.