Explanation on how to customize the hint class.

This commit is contained in:
Silvio Relli 2020-08-03 18:11:22 +02:00 committed by GitHub
parent 97857d21f9
commit 6b8583e5d5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -115,7 +115,7 @@ of any of them:
```erb
<%= simple_form_for @user do |f| %>
<%= f.input :username, label_html: { class: 'my_class' } %>
<%= f.input :username, label_html: { class: 'my_class' }, hint_html: {class: 'hint_class'} %>
<%= f.input :password, hint: false, error_html: { id: 'password_error'} %>
<%= f.input :password_confirmation, label: false %>
<%= f.button :submit %>