开发者

which type i need for this input "06/09/2011 05:25" ? on the model ? (column type)

i'm using this datetimepicker, http://trentrichardson.com/examples/timepicker/ and i get this datetime input: 06/09/2011 05:25, now i want to save the input in the database so i can use it later, which column type i need to setup on the datebase? i'm using this code for getting the input from users.

f.text_field :status_date

i tried the types date and datetime but both of them did not work (the column was nil when submiting)

开发者_StackOverflow社区

thanks, Gal

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜