Listing pages

<% @pages.each do |page| %> <% end %>
<%= link_to page.name, admin_page_path(page) %> <%= link_to 'Edit', edit_admin_page_path(page) %> <%= link_to 'Destroy', admin_page_path(page), :confirm => 'Are you sure?', :method => :delete %>

<%= link_to 'New pages', new_admin_page_path %>