<%= ajax_links :section_id => "page" do %> <%= will_paginate @posts %> <% end %> <%= ajax_loadzone do %> <% @posts.each do |post| %>

<%= post.title %>

Published on <%= post.published_at.strftime('%d %B %Y') if post.published_at? %>

<%= simple_format(post.content) %> <%= ajax_link_to 'Show', post %> <% if session[:admin] %> | <%= ajax_link_to 'Edit', edit_post_path(post), :section_id => "" %> | <%= ajax_link_to 'Destroy', post, :confirm => 'Are you sure?', :method => :delete %> <% end %>
<% end %> <% end %> <%= ajax_links :section_id => "page" do %> <%= will_paginate @posts %> <% end %>