This repository has been archived on 2024-03-16. You can view files and clone it, but cannot push or open issues or pull requests.
orbit-4-1/app/views/announcements/index.html.erb

18 lines
422 B
Plaintext

<h1>Listing announcements</h1>
<table>
<tr>
</tr>
<% @announcements.each do |announcement| %>
<tr>
<td><%= link_to 'Show', announcement %></td>
<td><%= link_to 'Edit', edit_announcement_path(announcement) %></td>
<td><%= link_to 'Destroy', announcement, :confirm => 'Are you sure?', :method => :delete %></td>
</tr>
<% end %>
</table>
<br />
<%= link_to 'New announcement', new_announcement_path %>