first commit
This commit is contained in:
15
app/views/articles/index.html.erb
Normal file
15
app/views/articles/index.html.erb
Normal file
@@ -0,0 +1,15 @@
|
||||
<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 %>
|
||||
Reference in New Issue
Block a user