Page Menu
Home
GRNET
Search
Configure Global Search
Log In
Files
F905151
hosts_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
Fri, Aug 29, 9:34 PM
Size
434 B
Mime Type
text/x-ruby
Expires
Sun, Aug 31, 9:34 PM (9 h, 36 m)
Engine
blob
Format
Raw Data
Handle
252508
Attached To
rARCHIVING archiving
hosts_controller.rb
View Options
class
Admin
::
HostsController
<
Admin
::
BaseController
before_action
:fetch_host
,
only
:
[
:show
,
:verify
]
# GET /admin/hosts/unverified
def
unverified
@hosts
=
Host
.
unverified
end
# GET /admin/hosts/1
def
show
end
# POST /admin/hosts/1/verify
def
verify
@host
.
verify
(
current_user
.
id
)
redirect_to
unverified_admin_hosts_path
end
private
def
fetch_host
@host
=
Host
.
find
(
params
[
:id
]
)
end
end
Event Timeline
Log In to Comment