Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ## code
- 7: <h2>Comments</h2>
- 8: <% if !@post.comments.blank? %>
- 9: <% @post.comments.each_with_index do |post, index| %>
- 10: <b>From:</b> <%= comment.name %><br />
- 11: <%= RedCloth.new(comment.body).to_html %>
- 12: <% if @post.comments.size > 1 and index < @post.comments.size %>
- 13: <hr noshade="noshade" /><br />
- ## error
- undefined local variable or method `comment' for #<ActionView::Base:0x2827998>
Add Comment
Please, Sign In to add comment