Commit 0affded5 by nnnghia98

edit setting.yml

parent 02011a75
class CitiesController < ApplicationController class CitiesController < ApplicationController
def index def index
@cities = City.page(params[:page]).per(Settings.col.page.per) @cities = City.page(params[:page]).per(Settings.city.per_page)
end end
end end
class JobsController < ApplicationController class JobsController < ApplicationController
def index def index
@jobs = Job.page(params[:page]).per(Settings.table.page.per) @jobs = Job.page(params[:page]).per(Settings.job.per_page)
end end
end end
class StaticPagesController < ApplicationController class StaticPagesController < ApplicationController
def index def index
@cities = City.page(params[:page]).per(Settings.col.page.per) @cities = City.page(params[:page]).per(Settings.city.per_page)
@industries = Industry.all @industries = Industry.all
@jobs = Job.page(params[:page]).per(Settings.table.page.per) @jobs = Job.page(params[:page]).per(Settings.job.per_page)
end end
end end
table: job:
page: per_page: 5
per: 5
col: city:
page: per_page: 12
per: 12
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