Quick correction on orgas infinite paging
This commit is contained in:
parent
41259fc387
commit
7ddfdff7c4
|
@ -13,6 +13,8 @@ class OrgasController < ApplicationController
|
|||
@search = @unfiltered_orgas.ransack params[:q]
|
||||
@search.sorts = 'updated_at desc' if @search.sorts.empty?
|
||||
@orgas = @search.result.page params[:page]
|
||||
|
||||
respond_to :html, :json
|
||||
end
|
||||
|
||||
# GET /orgas/new
|
||||
|
|
|
@ -13,6 +13,7 @@
|
|||
:region_name, Orga.human_attribute_name(:region)
|
||||
%th.updated_at= sort_link @search,
|
||||
:updated_at
|
||||
|
||||
%tbody
|
||||
- @orgas.each do |orga|
|
||||
%tr{ class: orga.active ? 'active' : 'inactive' }
|
||||
|
|
Loading…
Reference in New Issue