-1
誰でも私のコードでこのエラーが出てくるのを見ることができますか?HAML - "end-of-input" Rubyエラー
エラートラップを削除しても正常に動作しますが、エラートラップに関する問題が表示されません。
おかげ
= simple_form_for @pic, html: { multipart: true } do |f|
- if @pic.errors.any?
#errors
%h2
= pluralize(@pic.errors.count, "error")
prevented this Pic from saving
%ul
- @pic.errors.full_message.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-info"
ダブルチェックインデントと間隔。 –
インデントを確認して、一貫性があることを確認できますか?詳細については[こちらをチェック](http://haml.info/docs/yardoc/#indentation)をご覧ください。あなたのインデントがapplication.html.hamlと一貫していることも確認してください – alexunger