working on it, thanks for your help!  :)

Bryan

On Sep 15, 7:29 am, Presario 6331RSH HAM <[EMAIL PROTECTED]> wrote:
> Well Bryan there was a thread on this already but we may discuss this
> beginning part. I found an example on the api site that the lesson
> page refers to between the text on callbacks and the listing of
> methods in exercise 6. It's just a little link in the word "this" .
> Thanks Mr. Shin.
> That should get you started but the thread we are in we are having
> problems with the uniqueness
> of the credit card number. You see it gets converted and put into the
> database.
> Now we try to check it against what we have in the database and
> format#1 and format#2 will be seen as unique even when entering the
> same number. So if you get this far, come join that :thread @http://
> groups.google.com/group/ruby-on-rails-programming-with-passion/t/
> 4296783ff1e22b66?hl=en
>
> Good Luck!
>
> Bryan wrote:
> > Can someone explain their thought process on putting the credit card
> > string validation process together?  Conceptually, I understand what
> > is going on, however, I'm not getting the how I would make my custom
> > validation based on:
>
> > "User can enter the credit card format in the following format.  The x
> > has to be numeric value.
> > xxxx-xxxx-xxxx-xxxx  (format #1)
> > xxxx xxxx xxxx xxxx (format #2)
> > xxxxxxxxxxxxxxxx (format #3)"
>
> > I know I would use validate_format_of
> >http://www.railsbrain.com/api/rails-2.1.0/doc/index.html?a=M001743&na...
>
> > I'm sure this is probably simple for most of you but a push in the
> > right direction will help.
>
> > Thanks!
>
> > b
--~--~---------~--~----~------------~-------~--~----~
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