# Problem with DATE type in Oracle

**URL:** <https://www.ruby-forum.com/t/problem-with-date-type-in-oracle/112673>\
**Category:** Rails\
**Created:** [August 22, 2007, 12:17am UTC](https://www.ruby-forum.com/t/problem-with-date-type-in-oracle/112673 "2007-08-22T00:17:06Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![gers32](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/ed8c4c/32.png) [@gers32](https://www.ruby-forum.com/u/gers32)\
**Post date:** [August 22, 2007, 12:17am UTC](https://www.ruby-forum.com/t/problem-with-date-type-in-oracle/112673/1 "2007-08-22T00:17:06Z")

</div>

I have several DATE fields in several Oracle tables. Some have time  
information, some don’t (but same data type). Rails doesn’t seem to  
handle the ones that don’t contain it, for editing.

For example, on “show”, I’ll see:

2006-02-02

and

Thu Apr 12 09:31:04 +0200 2007

in two different DATE fields. But I’ll get the following error message  
on “edit”, regarding 2006-02-02:

private method `min’ called for #\<Date: 4907537/2,0,2299161\>

Does anyone know how to solve this problem?

Thanks, Chris.

---

<div class="post-metadata">

**Author:** ![gers32](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/ed8c4c/32.png) [@gers32](https://www.ruby-forum.com/u/gers32)\
**Post date:** [September 25, 2007, 11:10pm UTC](https://www.ruby-forum.com/t/problem-with-date-type-in-oracle/112673/2 "2007-09-25T23:10:45Z")

</div>

I solved the problem, by replacing the Rails-generated  
“datetime\_select” with “date\_select” in \_form.rhtml.
