Page Menu
Home
GRNET
Search
Configure Global Search
Log In
Files
F5131243
routes.rb
No One
Temporary
Actions
View 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
Mon, Aug 17, 1:57 PM
Size
538 B
Mime Type
text/plain
Expires
Wed, Aug 19, 1:57 PM (1 d, 2 h)
Engine
blob
Format
Raw Data
Handle
411191
Attached To
rWEBDNS WebDNS (edet4)
routes.rb
View Options
Rails
.
application
.
routes
.
draw
do
get
'/'
,
to
:
redirect
(
'/domains'
)
resources
:domains
do
resources
:records
,
except
:
[
:index
,
:show
]
do
# Reuse records#update instead of introducing new controller actions
#
# rubocop:disable Style/AlignHash
put
:disable
,
to
:
'records#update'
,
on
:
:member
,
defaults
:
{
record
:
{
disabled
:
true
}
}
put
:enable
,
to
:
'records#update'
,
on
:
:member
,
defaults
:
{
record
:
{
disabled
:
false
}
}
# rubocop:enable Style/AlignHash
end
end
end
Event Timeline
Log In to Comment