Disabling autocomplete in Rails forms

Sometimes might be helpful disable the forms autocomplete feature, specially for the password fields.

Just add to the field tag:

:autocomplete => 'off'

For example:

 'off' %>

This adds the parameter autocomplete=”off” to the HTML tag.

No Comments

Leave a Reply

Your email is never shared.Required fields are marked *