rails-refresher/app/views/articles/index.html.erb
Tyrel Souza 8a91d51c39
finish
2024-07-04 21:00:08 -04:00

17 lines
309 B
Plaintext

<h1>Articles</h1>
Our blog has <%= Article.public_count %> articles and counting!
<ul>
<% @articles.each do |article| %>
<% unless article.archived? %>
<li>
<%= link_to article.title, article %>
</li>
<% end %>
<% end %>
</ul>
<%= link_to "New Article", new_article_path %>