Trying to implement AJAX-based endless-page pagination
This commit is contained in:
parent
31f11c2d24
commit
732af154ad
3 changed files with 21 additions and 8 deletions
|
|
@ -1,6 +1,6 @@
|
|||
<h1>Search for a package/description:</h1>
|
||||
|
||||
<%= form_tag(url_for, method: "get", class: "form-search") do %>
|
||||
<%= form_tag(url_for, method: "get", :remote => true, id: "form-search", class: "form-search") do %>
|
||||
<div class="input-append">
|
||||
<%= text_field_tag :search, params[:search], autofocus: true, placeholder: 'What are you looking for...', class: "search-query" %>
|
||||
<button class="btn" type="submit">Search!</button>
|
||||
|
|
@ -18,7 +18,5 @@
|
|||
|
||||
<h1>Search results</h1>
|
||||
|
||||
<!--<div class="row-fluid">-->
|
||||
<%= render "packages_search_results", object: @packages %>
|
||||
<!--</div>-->
|
||||
<%= render "packages_search_results", object: @packages %>
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue