Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- SyntaxError in Posts#show
- Showing app/views/posts/show.rhtml where line #14 raised:
- compile error
- script/../config/../app/views/posts/show.rhtml:14: syntax error, unexpected '{', expecting tASSOC
- render :partial => 'comments/list', :locals {:comments => @post.comments} ; _erbout.concat "\n"
- ^
- script/../config/../app/views/posts/show.rhtml:14: syntax error, unexpected '}', expecting kEND
- render :partial => 'comments/list', :locals {:comments => @post.comments} ; _erbout.concat "\n"
- ^
- Extracted source (around line #14):
- 11: <%= time_ago_in_words @post.updated_at %>
- 12: </p>
- 13:
- 14: <% render :partial => 'comments/list', :locals {:comments => @post.comments} %>
- 15:
- 16: <%= link_to 'Add Comment', :controller => 'comments', :action => 'new', :post_id => @post %> <br />
- 17: <%= link_to 'Edit', :action => 'edit', :id => @post %> |
- Trace of template inclusion: /app/views/posts/show.rhtml
- RAILS_ROOT: script/../config/..
Add Comment
Please, Sign In to add comment