I need to perform an amount normalization before validation, I can do it with a callback before_validation :normalize_totalAmount .. fine BUT I need to perform the same normalization on 3 amounts.... should I write 3 different before_validation callbacks (:normalize_totalAmount, normalize_partPaymentAmount and :normalize_depositAmount) with 3 methods OR can I write something like : before_validation :normalize_Amount => totalAmount and write a single method but in this case how can I pass the amount value nd get it back the normalized one ?? def normalize_amount(n) ....... end -- 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-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk -~----------~----~----~----~------~----~------~--~---