I'm trying to turn autocomplete off in one of my rails forms. Here's what I've tried so far:
# add it at the form level
= form_tag admin_sessions_path, autocomplete: "off" do
That didn't work.
# add it at the element level
.panel
= label_tag :email
= email_field_tag :email, params[:email], autocomplete: 'off'
Neither did that.
# 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, params[:email], autocomplete: 'off'
When I visit my form, my email address and saved password are already filled-in. What am I doing wrong here? I love rails, but it really drives me mad sometimes.