Moved default page to "packages" controller.

Using a partial template to render search results.

Show packages by default even without a query.
This commit is contained in:
Christoph Haas 2013-07-27 13:12:29 +02:00
parent acd47f66d7
commit f26f8a425b
5 changed files with 36 additions and 19 deletions

View file

@ -0,0 +1,11 @@
<%# Show search results %>
<% if @packages %>
<ul>
<% @packages.each do |package| %>
<li>
<%= package.name %> <i>(<%= package.description %>)</i>
</li>
<% end %>
</ul>
<% end %>