Hi!, I know that Rails do not save in cascade so I need to solve this problem: I have invoice that has lines. Invoice have fields that are calculated with values of lines so when a line is modified or deleted I need to update the invoice, how I do that automaticaly? If I use before_save on invoice it does nothing because it does not detect that a line related is modified. Is the best solution to use a after_save on line that updates the invoice? -- Posted via http://www.ruby-forum.com/.
-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-t...@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.