I'm following a tutorial to make a forum! when I wrote this code in the 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
I got this errors :
app/views/posts/index.html.haml:7: syntax error, unexpected keyword_ensure, expecting keyword_end
app/views/posts/index.html.haml:10: syntax error, unexpected end-of-input, expecting keyword_end
I really need your help!
Aucun commentaire:
Enregistrer un commentaire