diff --git a/app/views/comments/_comment.html.erb b/app/views/comments/_comment.html.erb index 04be6d2..1f85bd2 100644 --- a/app/views/comments/_comment.html.erb +++ b/app/views/comments/_comment.html.erb @@ -1,6 +1,6 @@ <% @verses.each do |verse| %> - <%# comments = Comment.find(:all, :conditions=>['user_id = ? and verse_id = ? and comment IS NOT NULL', current_user.id, verse.id]) rescue nil%> - <% comments = Comment.find(:all, :conditions=>['user_id = ? and verse_id = ? and comment != ?', current_user.id, verse.id, "NULL" ]) rescue nil%> + <% comments = Comment.find(:all, :conditions=>['user_id = ? and verse_id = ? and comment IS NOT NULL', current_user.id, verse.id]) rescue nil%> + <%# comments = Comment.find(:all, :conditions=>['user_id = ? and verse_id = ? and comment != ?', current_user.id, verse.id, "NULL" ]) rescue nil%> <% comments.each do |comment| %>
<%= verse.chapter.to_s + ":" + verse.number.to_s rescue "" %> <%# comment.comment rescue ""%>