On 28 Aug 2008, at 05:32, dare ruby wrote:
>
> Dear all,
>
> I have created a model Admin and validated for the presence, format_of
> in alphabets, reg expression for email formats.
>
> When i was adding a new admin the data''s are validated properly
but
> while updating the data in model it was not validated.
>
> Could any one please suggest a way to proceed? how to perform the same
> validations while adding and modifying the model.
>
This should happen automatically (unless you specifically ask for it
not to). If you can show some code others might be able to offer
guidance.
Fred> Thanks in advance
>
> Regards,
> Jose Martin
> --
> 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?hl=en
-~----------~----~----~----~------~----~------~--~---