Hi,
I am trying to tell ruby to not run a block of html and ruby if no active record exists in the database. Below is the code I was trying to run conditions on.
<% if @statemant.comments.exists?() do %>
<div id="comments">
<h2>Comments</h2>
<%= render :partial => @statemant.comments %>
</div>
<% end %>