search for: sold_on

Displaying 1 result from an estimated 1 matches for "sold_on".

Did you mean: solcon
2005 Sep 06
1
US Date Handling in Rails
...h Rails and MySQL are oriented around ISO the format. I know I can convert a good portion of the entries using ParseDate::parsedate but it does not appear this is how the conversion is taking place when data is being transferred from the params hash into model members. Say I have a field ''sold_on'' of type DATE in the database. Would the following model code be along the right lines? require ''parsedate'' # ... # override assignment ... or has the type conversion already happened # by this point? def sold_on=(value) self[:sold_on] = ParseDate::parsedate(value,...