Sha256: a6c34c0f1e4ba68e2195296e5d18b81fed031708815a7490ab09a774fe726893

Contents?: true

Size: 405 Bytes

Versions: 1

Compression:

Stored size: 405 Bytes

Contents

<%= render @article %>

<footer>
  <% if policy(@article).update? %>
    <%= link_to edit_article_path(@article) do %>
      <b>Edit</b>
    <% end %>
  <% end %>

  <% if policy(@article).destroy? %>
    <%= link_to @article, method: :delete, data: {confirm: "Are you sure?"} do %>
      <em>Delete</em>
    <% end %>
  <% end %>

  <%= link_to articles_path  do %>
    <i>Back</i>
  <% end %>
</footer>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
bongo-0.2.0 app/views/bongo/articles/show.html.erb