2009/8/20 karthik k <[email protected]>:
> hi guys
>
> Thanks for the support you give
>
> I have some four fields which is not mandatory, but when that field is
> entered need to be validated before saved
>
> else
>
> it can take null value
>
> can you please guide me

Have a look at the rails guide on validations,
http://guides.rubyonrails.org/activerecord_validations_callbacks.html

Colin

--~--~---------~--~----~------------~-------~--~----~
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 [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to