Skip to content

Commit

Permalink
Oops, I forgot to add the new template...
Browse files Browse the repository at this point in the history
  • Loading branch information
Frédéric de Villamil committed Jan 4, 2009
1 parent 2f43552 commit 91a6c9b
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions app/views/articles/search.html.erb
@@ -0,0 +1,8 @@
<% for article in @articles -%>
<div class="post">
<h2><%= link_to_permalink article,article.title %></h2>
<%= article.body.gsub(/<\/?[^>]*>/, "").slice(0..300) %>...
</div>
<% end -%>

<p id="pagination"><%= will_paginate @articles %></p>

0 comments on commit 91a6c9b

Please sign in to comment.