0

チュートリアルに従ってフォーラムを作成しています! このコードをindex.html.hamlに書いたとき

- @posts.each do |post|
  %h2= post.title
%p 
Published at
= time_ago_in_words(post.created_at)
= link_to "New Post", new_post_path

このエラーが発生しました:

app/views/posts/index.html.haml:7: 構文エラー、予期しない keyword_ensure、keyword_end が必要
です app/views/posts/index.html.haml:10: 構文エラー、予期しない入力の終わり、keyword_end が必要です

私は本当にあなたの助けが必要です!

4

2 に答える 2