-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