18 lines
400 B
Plaintext
18 lines
400 B
Plaintext
<h1>Listing pages</h1>
|
|
|
|
<table>
|
|
<tr>
|
|
</tr>
|
|
|
|
<% @pages.each do |page| %>
|
|
<tr>
|
|
<td><%= link_to page.name, admin_page_path(page) %></td>
|
|
<td><%= link_to 'Edit', edit_admin_page_path(page) %></td>
|
|
<td><%= link_to 'Destroy', admin_page_path(page), :confirm => 'Are you sure?', :method => :delete %></td>
|
|
</tr>
|
|
<% end %>
|
|
</table>
|
|
|
|
<br />
|
|
|
|
<%= link_to 'New pages', new_admin_page_path %> |