> structure into chaos... what programmers dream of; and although the defeat will be inevitable (chaos is too strong), we must at least try..:-).
> before_validation I like that; whether it was intuition or analysis, it is a good step. Snapshot: a) it seems that we cannot wait to normalize the credit card until*before_save *... (we must get out of that Escher's painting). b) so, perhaps we should *invert the strategy*, and do it at *another before_* ... c) however, we must normalize it only if it is an acceptable credit card... (else we would be accepting any assortment of digits and spaces). in any case, this looks promising... (although it is just the first of 4 steps) Raul On Sat, Nov 1, 2008 at 6:15 PM, anne001 <[EMAIL PROTECTED]> wrote: > > HI > > I love how your mind works. It puts structure into chaos. > > I have been thinking about the Escher puzzle, but did not come up with > anything > new. > > This blog uses before_validation > > http://articles.directorym.net/Advanced_Active_Record_Validations_with_Rails_Austin_TX-r923957-Austin_TX.html > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "ruby-on-rails-programming-with-passion" group. To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/ruby-on-rails-programming-with-passion?hl=en?hl=en -~----------~----~----~----~------~----~------~--~---
