Page Menu
Home
GRNET
Search
Configure Global Search
Log In
Files
F2564800
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, Jun 10, 1:03 PM
Size
609 B
Mime Type
text/x-ruby
Expires
Fri, Jun 12, 1:03 PM (1 d, 20 h)
Engine
blob
Format
Raw Data
Handle
398089
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