Guest User

Untitled

a guest
Mar 5th, 2018
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.06 KB | None | 0 0
  1. SyntaxError in Posts#show
  2.  
  3. Showing app/views/posts/show.rhtml where line #14 raised:
  4.  
  5. compile error
  6. script/../config/../app/views/posts/show.rhtml:14: syntax error, unexpected '{', expecting tASSOC
  7. render :partial => 'comments/list', :locals {:comments => @post.comments} ; _erbout.concat "\n"
  8. ^
  9. script/../config/../app/views/posts/show.rhtml:14: syntax error, unexpected '}', expecting kEND
  10. render :partial => 'comments/list', :locals {:comments => @post.comments} ; _erbout.concat "\n"
  11. ^
  12.  
  13. Extracted source (around line #14):
  14.  
  15. 11: <%= time_ago_in_words @post.updated_at %>
  16. 12: </p>
  17. 13:
  18. 14: <% render :partial => 'comments/list', :locals {:comments => @post.comments} %>
  19. 15:
  20. 16: <%= link_to 'Add Comment', :controller => 'comments', :action => 'new', :post_id => @post %> <br />
  21. 17: <%= link_to 'Edit', :action => 'edit', :id => @post %> |
  22.  
  23. Trace of template inclusion: /app/views/posts/show.rhtml
  24.  
  25. RAILS_ROOT: script/../config/..
Add Comment
Please, Sign In to add comment