Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
V
VeNJob
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Tô Ngọc Ánh
VeNJob
Commits
fb586918
Commit
fb586918
authored
Aug 12, 2020
by
Tô Ngọc Ánh
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
redirect my_page after update users
parent
0590445c
Pipeline
#886
failed with stages
in 0 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
1 deletions
+8
-1
app/controllers/users/registrations_controller.rb
+7
-0
config/routes.rb
+1
-1
No files found.
app/controllers/users/registrations_controller.rb
0 → 100644
View file @
fb586918
class
Users
::
RegistrationsController
<
Devise
::
RegistrationsController
protected
def
after_update_path_for
(
resource
)
my_page_path
end
end
config/routes.rb
View file @
fb586918
Rails
.
application
.
routes
.
draw
do
Rails
.
application
.
routes
.
draw
do
devise_for
:users
,
controllers:
{
sessions:
'users/sessions'
}
devise_for
:users
,
controllers:
{
sessions:
'users/sessions'
,
registrations:
'users/registrations'
}
root
to:
'home#index'
root
to:
'home#index'
get
'cities'
,
to:
'locations#index'
get
'cities'
,
to:
'locations#index'
get
'industries'
,
to:
'industries#index'
get
'industries'
,
to:
'industries#index'
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment