Commit 8f825363 by Đường Sỹ Hoàng

Changed pagnition settings

parent c2373bcb
class JobsController < ApplicationController
def index
@all_jobs = Job.all.page(params[:page]).per(20)
@jobs = Job.all.page(params[:page]).per(Settings.all.job.limit)
end
end
......@@ -4,7 +4,6 @@ Rails.application.routes.draw do
resources :industries, only: :index
resources :top, only: :index
resources :users, only: :show
# resources :jobs, only: :index
devise_for :users
as :user do
get "login" , to: "devise/sessions#new"
......
......@@ -8,3 +8,6 @@ top:
limit: 9
industry:
limit: 9
all:
job:
limit: 20
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment