Skip to content

Commit

Permalink
crowbar: Use proper delete methods for deleting exported files
Browse files Browse the repository at this point in the history
  • Loading branch information
vuntz committed Feb 9, 2016
1 parent a84aaa2 commit 42ff54f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion crowbar_framework/app/views/support/index.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
- else
= link_to file, "/export/#{file}"

= link_to icon_tag("trash"), utils_files_path(:id => file), :title => t(".delete_hint"), :class => "pull-right"
= link_to icon_tag("trash"), utils_files_path(:id => file), :title => t(".delete_hint"), :class => "pull-right", :method => :delete
- else
.alert.alert-info
= t(".none_exported")
2 changes: 1 addition & 1 deletion crowbar_framework/config/routes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@

#support paths
get "utils(.:format)", controller: "support", action: "index", as: "utils"
get "utils/files/:id(.:format)", controller: "support", action: "destroy", constraints: { id: /[^\/]+/ }, as: "utils_files"
delete "utils/files/:id(.:format)", controller: "support", action: "destroy", constraints: { id: /[^\/]+/ }, as: "utils_files"
get "utils/chef(.:format)", controller: "support", action: "export_chef", as: "export_chef"
get "utils/supportconfig(.:format)", controller: "support", action: "export_supportconfig", as: "export_supportconfig"
get "utils/:controller/1.0/export(.:format)", action: "export", as: "utils_export"
Expand Down

0 comments on commit 42ff54f

Please sign in to comment.