Skip to content

Instantly share code, notes, and snippets.

@firecall
Last active January 21, 2022 00:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save firecall/effebfe74f775379000d011f0f25195d to your computer and use it in GitHub Desktop.
Save firecall/effebfe74f775379000d011f0f25195d to your computer and use it in GitHub Desktop.
Disable Auto Complete and Spell Check in a Rails Form Field
<%= f.text_field :fname, {
placeholder: 'First Name',
class: 'form-control',
required: true,
spellcheck: false,
autocomplete: 'off',
autocomplete: 'chrome-off',
autocorrect: 'off',
autocapitalize: 'off',
'data-gramm': false,
'data-lpignore': true
}
%>
@firecall
Copy link
Author

firecall commented Jan 21, 2022

data-gram disables Grammerly
date-lpignore disables LastPass

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment