Class: JobsController

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

Instance Method Summary collapse

Methods inherited from ApplicationController

#view_context

Instance Method Details

#createObject



25
26
27
# File 'app/controllers/jobs_controller.rb', line 25

def create
  respond_with @resource = scope.create_with_properties(params)
end

#destroyObject



33
34
35
# File 'app/controllers/jobs_controller.rb', line 33

def destroy
  respond_with @resource.destroy
end

#indexObject



13
14
15
# File 'app/controllers/jobs_controller.rb', line 13

def index
  respond_with @resources
end

#newObject



21
22
23
# File 'app/controllers/jobs_controller.rb', line 21

def new
  respond_with @resource = scope.new
end

#showObject



17
18
19
# File 'app/controllers/jobs_controller.rb', line 17

def show
  respond_with @resource
end

#updateObject



29
30
31
# File 'app/controllers/jobs_controller.rb', line 29

def update
  respond_with @resource.update_attributes_with_properties(params)
end