Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boxiang Sun
gitlab-ce
Commits
4c8224ae
Commit
4c8224ae
authored
Oct 09, 2013
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move profile account to separate controller
parent
c41e66db
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
4 deletions
+13
-4
app/controllers/profiles/accounts_controller.rb
app/controllers/profiles/accounts_controller.rb
+7
-0
config/routes.rb
config/routes.rb
+6
-4
No files found.
app/controllers/profiles/accounts_controller.rb
0 → 100644
View file @
4c8224ae
class
Profiles::AccountsController
<
ApplicationController
layout
"profile"
def
show
@user
=
current_user
end
end
config/routes.rb
View file @
4c8224ae
...
...
@@ -99,19 +99,21 @@ Gitlab::Application.routes.draw do
#
resource
:profile
,
only:
[
:show
,
:update
]
do
member
do
get
:account
get
:history
get
:token
get
:design
put
:update_password
put
:reset_private_token
put
:update_username
end
scope
module: :profiles
do
resource
:account
,
only:
[
:show
,
:update
]
resource
:notifications
,
only:
[
:show
,
:update
]
resource
:password
,
only:
[
:new
,
:create
]
resource
:password
,
only:
[
:new
,
:create
,
:edit
,
:update
]
do
member
do
put
:reset
end
end
resources
:keys
resources
:groups
,
only:
[
:index
]
do
member
do
...
...
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