[typo] Comment box hiding?

Justus Pendleton justus at ryoohki.net
Mon Sep 19 19:33:52 EDT 2005

Mike Purvis wrote:
> Uh, second question: How would I make the comment form not show up when 
> comments are no longer accepted? Right now it seems to just swallow them 
> without any notice at all.

At the risk of repeating myself..."That works for me."

It displays "Comments are disabled" instead of the comment form.  That 
done at the bottom of app/views/articles/read.rhtml:

<% if @article.allow_comments? -%>
   <%= render :partial => 'comment_box' %>
<% else -%>
   <p>Comments are disabled</p>
<% end -%>

More information about the Typo-list mailing list