debshots/app/views/packages/index.html.erb
Christoph Haas 88dfb33721 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.
2013-08-06 23:36:48 +02:00

15 lines
413 B
Text

<h1>Hello, Rails!</h1>
<h1>Search for a package/description:</h1>
<%= 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 %>
<h1>Search results</h1>
<%= render "packages_search_results", object: @packages %>