摘要:
前天在使用mongoid的时候用了class Article include Mongoid::Document field :name field :content field :published_on, type: Dateend 在相应的视图中添加了一些对应属性的试图<%= f.date_select :published_on %> 当创建一个article成功后,在展现的html中published_on对应的是空的,后来在数据库中查看了一下,插入进去了,但是插入的不是published_on而是变成了三个属性published_on(1i) 和 published_o 阅读全文
posted @ 2012-09-12 16:56
---小青年---
阅读(279)
评论(0)
推荐(0)
浙公网安备 33010602011771号