Path correction
This commit is contained in:
parent
753d4cb25e
commit
f7b911d239
|
@ -24,7 +24,7 @@ class DeployKeysController < ApplicationController
|
||||||
end
|
end
|
||||||
|
|
||||||
def create
|
def create
|
||||||
@key = @project.deploy_keys.new(params[:key])
|
@key = @project.deploy_keys.new(params[:deploy_key])
|
||||||
@key.save
|
@key.save
|
||||||
|
|
||||||
respond_with(@key)
|
respond_with(@key)
|
||||||
|
@ -35,7 +35,7 @@ class DeployKeysController < ApplicationController
|
||||||
@key.destroy
|
@key.destroy
|
||||||
|
|
||||||
respond_to do |format|
|
respond_to do |format|
|
||||||
format.html { redirect_to deploy_keys_url }
|
format.html { redirect_to project_deploy_keys_url }
|
||||||
format.js { render :nothing => true }
|
format.js { render :nothing => true }
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
%a.update-item{:href => project_deploy_key_path(key)}
|
%a.update-item{:href => project_deploy_key_path(key.project, key)}
|
||||||
%span.update-title
|
%span.update-title
|
||||||
= key.title
|
= key.title
|
||||||
%span.update-author
|
%span.update-author
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
%pre= @key.key
|
%pre= @key.key
|
||||||
.clear
|
.clear
|
||||||
.buttons
|
.buttons
|
||||||
= link_to 'Remove', @key, :confirm => 'Are you sure?', :method => :delete, :class => "red-button delete-key right"
|
= link_to 'Remove', project_deploy_key_path(@key.project, @key), :confirm => 'Are you sure?', :method => :delete, :class => "red-button delete-key right"
|
||||||
.clear
|
.clear
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue