init kaminari

This commit is contained in:
Mark Moser
2017-02-24 14:27:38 -06:00
parent 7bb795e379
commit ac71223b6b
5 changed files with 28 additions and 0 deletions

View File

@ -14,6 +14,7 @@ module Admin
@candidates = Candidate.where(completed: true)
.includes(:recruiter)
.order("#{sort_column} #{sort_direction}")
.page(params[:page])
end
def view

View File

@ -24,4 +24,5 @@
</tr>
<% end %>
</table>
<%= paginate @candidates %>
</main>