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 = @unfiltered_orgas.ransack params[:q]
|
||||||
@search.sorts = 'updated_at desc' if @search.sorts.empty?
|
@search.sorts = 'updated_at desc' if @search.sorts.empty?
|
||||||
@orgas = @search.result.page params[:page]
|
@orgas = @search.result.page params[:page]
|
||||||
|
|
||||||
|
respond_to :html, :json
|
||||||
end
|
end
|
||||||
|
|
||||||
# GET /orgas/new
|
# GET /orgas/new
|
||||||
|
@ -13,6 +13,7 @@
|
|||||||
:region_name, Orga.human_attribute_name(:region)
|
:region_name, Orga.human_attribute_name(:region)
|
||||||
%th.updated_at= sort_link @search,
|
%th.updated_at= sort_link @search,
|
||||||
:updated_at
|
:updated_at
|
||||||
|
|
||||||
%tbody
|
%tbody
|
||||||
- @orgas.each do |orga|
|
- @orgas.each do |orga|
|
||||||
%tr{ class: orga.active ? 'active' : 'inactive' }
|
%tr{ class: orga.active ? 'active' : 'inactive' }
|
||||||
|
Loading…
Reference in New Issue
Block a user