Sha256: cbca55bbc2d62ce843792423a542c59feace2c38d4fd8f7ee1f9837294d11262

Contents?: true

Size: 373 Bytes

Versions: 2

Compression:

Stored size: 373 Bytes

Contents

<% @articles.each do |article| %>
  <article>
    <h2><%= link_to article.title, article %></h2>
    <small><%= article.publish_at ? l(article.publish_at, format: :long) : "Unpublished draft"%></small>
    <p><%= simple_format truncate(article.text, length: 500) %></p>
  </article>
  <br>
<% end %>

<br>

<%= link_to new_article_path do %>
  <b>New Article</b>
<% end %>

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
bongo-0.0.2 app/views/bongo/articles/index.html.erb
bongo-0.0.1 app/views/bongo/articles/index.html.erb