17 lines
309 B
Plaintext
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 %>
|
||
|
|