---
title: "Rails中Mongoid的时间日期字段使用 datetime_select"
author: "tiroc"
date: "2013-01-23T01:57:19Z"
tags: []
categories: ["编程语言"]
slug: "rails-mongoid-datetime-select"
draft: false
lastmod: "2013-01-23T01:57:19Z"
id: 1774082
url: "https://tiroc.iteye.com/blog/1774082"
---

<http://stackoverflow.com/questions/3958052/datetime-with-mongodb-mongoid-and-rails-3-not-populating>

在model中

```ruby

include Mongoid::MultiParameterAttributes

```