-2
= simple_form_for @pin,html: { multipart: true } do |f|
- if @pin.errors.any?
#errors
%h2
= pluralize(@pin.errors.count, "error")
prevented this Pi from saving
%ul
- @pin.errors.full_messages.each do |msg|
%li= msg
.form-group
= f.input :title, input_html: { class: 'form-control' }
.form-group
= f.input :description, input_html: { class: 'form-control' }
= f.button :submit, class: "btn btn-primary"
你的問題是什麼? – jedifans
不一致的縮進:1個用於縮進的選項卡,但文檔的其餘部分使用2個空格縮進。 – user6759862
我該如何刪除它 – user6759862