Page Menu
Home
GRNET
Search
Configure Global Search
Log In
Files
F906853
users_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, 10:55 AM
Size
317 B
Mime Type
text/x-ruby
Expires
Mon, Sep 1, 10:55 AM (19 h, 20 m)
Engine
blob
Format
Raw Data
Handle
253679
Attached To
rARCHIVING archiving
users_controller.rb
View Options
class
UsersController
<
ApplicationController
# GET users/1
def
show
;
end
# PATCH users/1/generate_token
def
generate_token
if
current_user
.
create_token
flash
[
:success
]
=
'Token created'
else
flash
[
:error
]
=
'Token not created'
end
redirect_to
user_path
(
current_user
)
end
end
Event Timeline
Log In to Comment