BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
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
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
gitlab-ce
Commits
1b10724e
Commit
1b10724e
authored
Mar 03, 2016
by
Robert Speicher
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Don't abuse the flash store for displaying SSH Key form errors
parent
01b89ee8
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
keys_controller.rb
app/controllers/profiles/keys_controller.rb
+3
-2
No files found.
app/controllers/profiles/keys_controller.rb
View file @
1b10724e
...
...
@@ -3,7 +3,7 @@ class Profiles::KeysController < Profiles::ApplicationController
def
index
@keys
=
current_user
.
keys
@key
=
flash
[
:key
]
||
Key
.
new
@key
=
Key
.
new
end
def
show
...
...
@@ -16,7 +16,8 @@ class Profiles::KeysController < Profiles::ApplicationController
if
@key
.
save
redirect_to
profile_key_path
(
@key
)
else
redirect_to
profile_keys_path
,
flash:
{
key:
@key
}
@keys
=
current_user
.
keys
.
select
(
&
:persisted?
)
render
:index
end
end
...
...
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