15 lines
426 B
Text
15 lines
426 B
Text
<h1>Hello, Rails!</h1>
|
|
|
|
<h1>Search for a package/description:</h1>
|
|
|
|
<%= form_tag(url_for, method: "get") do %>
|
|
<%= text_field_tag :search, params[: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 %>
|