Fixed: Added POST routes for Cost Object creation

git-svn-id: https://dev.finn.de/svn/cockpit/trunk@467 7926756e-e54e-46e6-9721-ed318f58905e
pull/6827/head
hjust 15 years ago
parent f47c2452cc
commit 222fca1939
  1. 2
      config/routes.rb

@ -38,7 +38,7 @@ ActionController::Routing::Routes.draw do |map|
co_views.connect 'cost_objects/:id/move', :action => 'move', :id => /\d+/
end
cost_objects.with_options :conditions => {:method => :post} do |co_actions|
co_actions.connect 'projects/:project_id/cost_objects/new', :action => 'new'
co_actions.connect 'projects/:project_id/cost_objects/:action', :action => /new|preview|update_(labor|material)_budget_item/
co_actions.connect 'cost_objects/:id/:action', :action => /edit|move|destroy/, :id => /\d+/
end
cost_objects.connect 'cost_objects/:action'

Loading…
Cancel
Save