Oups, that won't work.

the data has to be in format xxxxx in order to be validated
but if uniqueness fails, it has to be in format xxxx-xxxx or whatever
the user put in.

So even if I take care of formatting validation in before-validation
I have not resolved the problem.

Seems to me this require defining our own validation rather than rely
on
call-backs etc.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to