Corrected routes to create and destroy cost entries (#13844)

git-svn-id: https://dev.finn.de/svn/cockpit/trunk@421 7926756e-e54e-46e6-9721-ed318f58905e
pull/6827/head
hjust 15 years ago
parent d86deeb05b
commit f2e61227f9
  1. 6
      config/routes.rb

@ -15,6 +15,12 @@ ActionController::Routing::Routes.draw do |map|
cost_details.connect 'projects/:project_id/issues/:issue_id/cost_entries'
cost_details.connect 'projects/:project_id/issues/:issue_id/cost_entries.:format'
end
costlog.with_options :action => 'edit', :conditions => {:method => :get} do |cost_edit|
cost_edit.connect 'issues/:issue_id/cost_entries/new'
end
costlog.connect 'cost_entries/:id/destroy', :action => 'destroy', :conditions => {:method => :post}
end
map.with_options :controller => 'cost_objects' do |cost_objects|

Loading…
Cancel
Save