Loading ...
Sorry, an error occurred while loading the content.

date select error

Expand Messages
  • nishant sinha
    hi shalmali, I think u r choosing an invalid date in the standard Rails date helper (i.e. 31 of February). The proposed solution is: 1) Intercept
    Message 1 of 1 , Aug 26, 2008
    View Source
    • 0 Attachment
      hi shalmali,
      I think u r choosing an invalid date in the standard Rails date
      helper (i.e. 31 of February).

      The proposed solution is:
      1) Intercept ArgumentError if the class is Date (and only Date)
      2) If ArgumentError is raised, create a Time object using the same parameters
      3) Convert it to Date


      Nishant Sinha


      Connect with friends all over the world. Get Yahoo! India Messenger at http://in.messenger.yahoo.com/?wm=n/

      [Non-text portions of this message have been removed]
    Your message has been successfully submitted and would be delivered to recipients shortly.