Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <%#
- # list.rhtml
- %>
- <% if @classifieds.blank? %>
- <p>There are not 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>
Add Comment
Please, Sign In to add comment