Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Tree: af75076c61
Fetching contributors…

Cannot retrieve contributors at this time

20 lines (17 sloc) 0.625 kB
<% title "Articles" %>
<% form_tag articles_path, :method => :get do %>
<p>
<%= text_field_tag :search, params[:search] %>
<%= submit_tag "Search", :name => nil %>
</p>
<% end %>
<div id="articles">
<% for article in @articles %>
<h2>
<%= link_to h(article.name), article %>
<span class="comments">(<%= pluralize(article.comments.size, 'comment') %>)</span>
</h2>
<div class="author">from <%=h article.author.first_name %> <%=h article.author.last_name %> on <%= article.created_at.strftime('%b %d, %Y') %></div>
<div class="content"><%= simple_format(article.content) %></div>
<% end %>
</div>
Jump to Line
Something went wrong with that request. Please try again.