Page Menu
Home
GRNET
Search
Configure Global Search
Log In
Files
F906945
filesets_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
Sat, Aug 30, 11:55 AM
Size
541 B
Mime Type
text/x-ruby
Expires
Mon, Sep 1, 11:55 AM (1 d, 15 h)
Engine
blob
Format
Raw Data
Handle
253725
Attached To
rARCHIVING archiving
filesets_controller.rb
View Options
class
FilesetsController
<
ApplicationController
before_action
:fetch_host
,
only
:
[
:new
,
:create
]
def
new
@fileset
=
@host
.
filesets
.
new
end
def
show
end
def
create
@fileset
=
@host
.
filesets
.
new
(
fetch_params
)
if
@fileset
.
save
redirect_to
host_path
(
@host
)
else
render
:new
end
end
def
destroy
end
private
def
fetch_host
@host
=
Host
.
find
(
params
[
:host_id
]
)
end
def
fetch_params
params
.
require
(
:fileset
)
.
permit
(
:name
,
exclude_directions
:
[]
,
include_files
:
[]
)
end
end
Event Timeline
Log In to Comment