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:
parent
acd47f66d7
commit
f26f8a425b
5 changed files with 36 additions and 19 deletions
11
app/views/packages/_packages_search_results.html.erb
Normal file
11
app/views/packages/_packages_search_results.html.erb
Normal 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 %>
|
||||
Loading…
Add table
Add a link
Reference in a new issue