error messages restyled
This commit is contained in:
parent
c9ea5f1316
commit
b7614c714e
3 changed files with 9 additions and 8 deletions
|
@ -27,9 +27,11 @@ class DeployKeysController < ApplicationController
|
|||
|
||||
def create
|
||||
@key = @project.deploy_keys.new(params[:key])
|
||||
@key.save
|
||||
|
||||
redirect_to project_deploy_keys_path(@project)
|
||||
if @key.save
|
||||
redirect_to project_deploy_keys_path(@project)
|
||||
else
|
||||
render "new"
|
||||
end
|
||||
end
|
||||
|
||||
def destroy
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue