-5
このコードを実行するたびに、エラーが発生しました。間違ったことが見つかりませんでした。シナティックエラーtidentifierについて、keyword_doまたは '{'または '('が必要です。それは何ができるかの?ruby on rails識別子エラー1
_form.html.haml
= simple_form_for @pin, html: { multipart: true } do |f|
= if @pin.errors.any?
#errors
%h2
= pluralize(@pin.errors.count, "error")
prevented this pin 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"
[HAMLのドキュメントから:](http://haml.info/docs/yardoc/)HAMLはHTML構造を表すために、個々の要素を持って__indentation__を使用しています。 –
エラーメッセージは何ですか? –