Class: JobsController

Inherits:
ApplicationController show all
Defined in:
app/controllers/jobs_controller.rb

Instance Method Summary collapse

Instance Method Details

#indexObject


2
3
4
5
# File 'app/controllers/jobs_controller.rb', line 2

def index
  @history = History.new(params[:period])
  @jobs    = Job.recents(page: params[:page], sort: sort_column, dir: sort_direction, query: params[:q])
end

#newObject


11
12
13
# File 'app/controllers/jobs_controller.rb', line 11

def new
  @job = Job.new
end

#showObject


7
8
9
# File 'app/controllers/jobs_controller.rb', line 7

def show
  @job = Job.find(params[:id])
end