rails-refresher/app/views/articles/index.html.erb

17 lines
309 B
Plaintext
Raw Normal View History

2024-07-05 01:00:08 +00:00
<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 %>