Good afternoon. I had a problem in styles . I have a table with data , but using simple_form_for I lost distance between the label and the window placeholder. Before that, I used the following code , and now I have a problem , there is nothing in a head climbs
My code :
tr
td
= user.input :current_password, label: 'Пароль', placeholder: 'Введите текущий пароль'
code before :
tr
td
| Новый пароль:
td
= user.password_field :password
The below should work
tr
td
= user.label 'Пароль'
= user.input :current_password, label: false, placeholder: 'Введите текущий пароль'
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.