hi all,
im having a date part in one of my view page.i used
[date_select] tag for it.i set the format as mm/dd/yyyy.i want to show a
validation message when user entered the date as 30/02/any year or
31/02/any year.im waiting for the replies.
--
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
-~----------~----~----~----~------~----~------~--~---
Karthikragunath Bhavani wrote:> > > hi all, > > im having a date part in one of my view page.i used > [date_select] tag for it.i set the format as mm/dd/yyyy.i want to show a > validation message when user entered the date as 30/02/any year or > 31/02/any year.im waiting for the replies.http://www.ruby-doc.org/core/ Check the Date class... perhaps you want valid_civil? or valid_commercial? or one of the other variants. -- 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 -~----------~----~----~----~------~----~------~--~---