Listing pages

<% for page in @pages %> <% end %>
Node Title
<%=h page.node_id %> <%=h page.title %> <%= link_to 'Show', content_path(:page_path => page.node.unique_path) %> <%= link_to 'Edit', edit_page_path(page) %> <%= button_to 'Destroy', page, method: :delete, form: { data: { confirm: 'Are you sure?' } } %>

<%= link_to 'New page', new_page_path %>