<% if @classifieds.blank? %>
<p>There aren't any ads currently in the system.</p>
<% else %>
<p>These are the current classified ads in our system</p>
<ul id="classifieds">
<% @classifieds.each.do |c| %>
<li><%= link_to c.title, {:action => 'show', :id => c.id} -%></li>
<% end %>
</ul>
<% end %>
<p><%= link_to "Add new ad", {:action => 'new' }%></p>