[#4181] Hooked up the Edit and Update actions for FixedDeliverables.

This commit is contained in:
Eric Davis
2010-06-23 17:05:28 -07:00
parent 32f91e8da2
commit 2ce9c55239
5 changed files with 53 additions and 3 deletions
@@ -16,6 +16,12 @@ class DeliverablesController < InheritedResources::Base
create! { contract_url(@project, @contract) }
end
def update
@deliverable = begin_of_association_chain.deliverables.find_by_id(params[:id])
@deliverable.attributes = params[:fixed_deliverable] # TODO: hardcoded
update! { contract_url(@project, @contract) }
end
def show
redirect_to contract_url(@project, @contract)
end