Skip to content

Instantly share code, notes, and snippets.

@jcasimir
Forked from anonymous/gist:926564
Created April 19, 2011 00:13
Show Gist options
  • Save jcasimir/926568 to your computer and use it in GitHub Desktop.
Save jcasimir/926568 to your computer and use it in GitHub Desktop.
<h1><%= pluralize @articles.count, "Article" %></h1>
<%= link_to "Add", new_article_path, :class => "new_article" %>
<ul id="articles">
<% @articles.each do |article| %>
<li><%= link_to article.title, article_path(article) %></li>
<% end %>
</ul>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment