Guest User

Untitled

a guest
Apr 21st, 2018
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. <%#
  2. # list.rhtml
  3. %>
  4.  
  5. <% if @classifieds.blank? %>
  6. <p>There are not any ads currently in the system.</p>
  7. <% else %>
  8. <p>These are the current classified ads in our system</p>
  9.  
  10. <ul id="classifieds">
  11. <% @classifieds.each do |c| %>
  12. <li><%=link_to c.title, {:action => 'show', :id => c.id} -%></li>
  13. <% end %>
  14. </ul>
  15. <% end %>
  16. <p><%= link_to "Add new ad", {:action => 'new'} %></p>
Add Comment
Please, Sign In to add comment