Displaying 1 result from an estimated 1 matches for "declarationspayer".
Did you mean:
declarations_payer
2007 Mar 11
0
Good code?
...eturn false
end
@declarations_payers = params[:declarations_payers]
@additional_persons = params[:additional_persons]
#If there are payers, add them
if @declarations_payers
@declarations_payers.each_value { |user_id|
#Add new object
@declarations_payer = DeclarationsPayer.new
#Set user_id variable (from post)
@declarations_payer.user_id = user_id
#Add aditional persons (from post)
@declarations_payer.additional_persons =
@additional_persons[user_id]
#Add the object to the declaration object
@declaration.declarations...