Commit f7b911d23911fa5fb18332495b18c1f4f820f745
1 parent
753d4cb2
Exists in
master
and in
4 other branches
Path correction
Showing
3 changed files
with
4 additions
and
4 deletions
Show diff stats
app/controllers/deploy_keys_controller.rb
| ... | ... | @@ -24,7 +24,7 @@ class DeployKeysController < ApplicationController |
| 24 | 24 | end |
| 25 | 25 | |
| 26 | 26 | def create |
| 27 | - @key = @project.deploy_keys.new(params[:key]) | |
| 27 | + @key = @project.deploy_keys.new(params[:deploy_key]) | |
| 28 | 28 | @key.save |
| 29 | 29 | |
| 30 | 30 | respond_with(@key) |
| ... | ... | @@ -35,7 +35,7 @@ class DeployKeysController < ApplicationController |
| 35 | 35 | @key.destroy |
| 36 | 36 | |
| 37 | 37 | respond_to do |format| |
| 38 | - format.html { redirect_to deploy_keys_url } | |
| 38 | + format.html { redirect_to project_deploy_keys_url } | |
| 39 | 39 | format.js { render :nothing => true } |
| 40 | 40 | end |
| 41 | 41 | end | ... | ... |
app/views/deploy_keys/_show.html.haml
app/views/deploy_keys/show.html.haml
| ... | ... | @@ -4,7 +4,7 @@ |
| 4 | 4 | %pre= @key.key |
| 5 | 5 | .clear |
| 6 | 6 | .buttons |
| 7 | - = link_to 'Remove', @key, :confirm => 'Are you sure?', :method => :delete, :class => "red-button delete-key right" | |
| 7 | + = link_to 'Remove', project_deploy_key_path(@key.project, @key), :confirm => 'Are you sure?', :method => :delete, :class => "red-button delete-key right" | |
| 8 | 8 | .clear |
| 9 | 9 | |
| 10 | 10 | ... | ... |