Results 1 to 3 of 3
Oct 6, 2007, 18:27 #1
- Join Date
- Nov 2005
- 0 Post(s)
- 0 Thread(s)
IF statements in RJS files? I Need flow control!
I have a comments system working and ready. When the page is loaded and there aren't any comments, I have:
<% if @comments_submitted.empty? %>
<center><b><span id="nocomments">No one has commented yet. Be the first!</span></b></center>
<% else %>
page.replace_html 'nocomments', ""