daily pastebin goal
76%
SHARE
TWEET

Untitled

a guest Apr 26th, 2018 67 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ## code
  2. 7: <h2>Comments</h2>
  3. 8: <% if !@post.comments.blank? %>
  4. 9:  <% @post.comments.each_with_index do |post, index| %>
  5. 10:         <b>From:</b> <%= comment.name %><br />
  6. 11:         <%= RedCloth.new(comment.body).to_html %>
  7. 12:         <% if @post.comments.size > 1 and index < @post.comments.size %>
  8. 13:             <hr noshade="noshade" /><br />
  9.  
  10. ## error
  11. undefined local variable or method `comment' for #<ActionView::Base:0x2827998>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top