diff --git a/app/models/deliverable.rb b/app/models/deliverable.rb index d7386b6..9a74526 100644 --- a/app/models/deliverable.rb +++ b/app/models/deliverable.rb @@ -13,7 +13,7 @@ class Deliverable < ActiveRecord::Base accepts_nested_attributes_for :labor_budgets, :allow_destroy => true accepts_nested_attributes_for :overhead_budgets, :allow_destroy => true - accepts_nested_attributes_for :fixed_budgets + accepts_nested_attributes_for :fixed_budgets, :allow_destroy => true # Validations validates_presence_of :title diff --git a/app/views/deliverables/_finance_form.html.erb b/app/views/deliverables/_finance_form.html.erb index 8d0fad2..f006a5e 100644 --- a/app/views/deliverables/_finance_form.html.erb +++ b/app/views/deliverables/_finance_form.html.erb @@ -10,6 +10,12 @@ <% end %> + + <% form.inputs :name => label, :class => "deliverable-finances #{fieldset_class}" do %>