Sha256: b3ddd3e131df4dbbe0dae65f477c91926b449e9261069bb4372304ab1c423b95

Contents?: true

Size: 382 Bytes

Versions: 4

Compression:

Stored size: 382 Bytes

Contents

<h1>
  <%= @post.title %>
</h1>
<i>Published <%= @post.published_at.strftime('%d %B %Y') %></i>
<p>
  <%= simple_format(@post.content) %>
</p>


<% if session[:admin] %>
  <%= ajax_link_to 'Edit', edit_post_path(@post) %> |
  <%= ajax_link_to 'Destroy', @post, :confirm => 'Are you sure?', :method => :delete, :pagination => "" %> |
<% end %>
<%= ajax_link_to 'Back', posts_path %>

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
ajax_pagination-0.5.1 spec/rails_app/app/views/posts/show.html.erb
ajax_pagination-0.5.0 spec/rails_app/app/views/posts/show.html.erb
ajax_pagination-0.4.0 spec/rails_app/app/views/posts/show.html.erb
ajax_pagination-0.3.0 spec/rails_app/app/views/posts/show.html.erb