Return results for packages only with screenshots.
Currently the packages controller is not working well. The JOIN is not the best way apparently as the 'description' column exists for both the "packages" and the "screenshots" table. So another way to query for the data needs to be found.
This commit is contained in:
parent
f9e920aea5
commit
88dfb33721
3 changed files with 14 additions and 4 deletions
|
|
@ -1,6 +1,7 @@
|
|||
<%# Show search results %>
|
||||
|
||||
<% if @packages %>
|
||||
<% if @packages.count>0 %>
|
||||
<h1>Class=<%= @packages.class %></h1>
|
||||
<ul>
|
||||
<% @packages.each do |package| %>
|
||||
<li>
|
||||
|
|
|
|||
|
|
@ -4,6 +4,9 @@
|
|||
|
||||
<%= form_tag(url_for, method: "get") do %>
|
||||
<%= text_field_tag :search, '', autofocus: true, placeholder: 'What are you looking for...' %>
|
||||
|
|
||||
With screenshots? <%= check_box_tag 'with_screenshots', 'yes', true %>
|
||||
|
|
||||
<%= submit_tag "Search" %>
|
||||
<% end %>
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue