Sha256: aed5320593cca464ce1a63ff8797af8dee7e37194360bbe7f02748926db92639

Contents?: true

Size: 504 Bytes

Versions: 1

Compression:

Stored size: 504 Bytes

Contents

<article>
  <header>
    <h2><%= @article.title %></h2>
    <small><%= @article.publish_at ? l(@article.publish_at, format: :long) : "Unpublished draft"%></small>
  </header>
  <main class="trix-content">
    <%= @article.text.html_safe %>
  </main>
</article>

<br>

<%= link_to edit_article_path(@article) do %>
  <b>Edit</b>
<% end %>

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

<%= link_to articles_path do %>
  <em>Back</em>
<% end %>

Version data entries

1 entries across 1 versions & 1 rubygems

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