Page Menu
Home
GRNET
Search
Configure Global Search
Log In
Files
F5401954
jobs_controller.rb
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Wed, Sep 9, 6:17 PM
Size
609 B
Mime Type
text/x-ruby
Expires
Fri, Sep 11, 6:17 PM (19 h, 21 m)
Engine
blob
Format
Raw Data
Handle
445619
Attached To
rARCHIVING archiving
jobs_controller.rb
View Options
class
JobsController
<
ApplicationController
before_action
:fetch_job
,
only
:
[
:show
,
:edit
,
:update
,
:destroy
]
# GET /jobs
def
new
@job_template
=
JobTemplate
.
new
end
# POST /jobs
def
create
@job_template
=
JobTemplate
.
new
(
fetch_params
)
end
# GET /jobs/1
def
show
;
end
# GET /jobs/1/edit
def
edit
;
end
# PUT /jobs/1
def
update
;
end
# DELETE /jobs/1
def
destroy
end
private
def
fetch_job
@job_template
=
JobTemplate
.
find
(
params
[
:id
]
)
end
def
fetch_params
params
.
require
(
:job_template
)
.
permit
(
:name
,
:job_type
,
:fileset_id
,
:schedule_id
)
end
end
Event Timeline
Log In to Comment