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.

Sin comentarios

Leave a Reply

Tu email nunca será compartido con nadie.Los campos obligatorios están marcados con *