Class: JobsController
- Inherits:
-
ApplicationController
- Object
- ActionController::Base
- ApplicationController
- JobsController
- Defined in:
- app/controllers/jobs_controller.rb
Instance Method Summary collapse
Methods inherited from ApplicationController
Instance Method Details
#create ⇒ Object
25 26 27 |
# File 'app/controllers/jobs_controller.rb', line 25 def create respond_with @resource = scope.create_with_properties(params) end |
#destroy ⇒ Object
33 34 35 |
# File 'app/controllers/jobs_controller.rb', line 33 def destroy respond_with @resource.destroy end |
#index ⇒ Object
13 14 15 |
# File 'app/controllers/jobs_controller.rb', line 13 def index respond_with @resources end |
#new ⇒ Object
21 22 23 |
# File 'app/controllers/jobs_controller.rb', line 21 def new respond_with @resource = scope.new end |
#show ⇒ Object
17 18 19 |
# File 'app/controllers/jobs_controller.rb', line 17 def show respond_with @resource end |
#update ⇒ Object
29 30 31 |
# File 'app/controllers/jobs_controller.rb', line 29 def update respond_with @resource.update_attributes_with_properties(params) end |