Last active
January 21, 2022 00:47
-
-
Save firecall/effebfe74f775379000d011f0f25195d to your computer and use it in GitHub Desktop.
Disable Auto Complete and Spell Check in a Rails Form Field
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<%= 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 | |
} | |
%> | |
Author
firecall
commented
Jan 21, 2022
•
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment