Search the web
Sign In
New User? Sign Up
RubyOnRails · Ruby on Rails
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Want your group to be featured on the Yahoo! Groups website? Add a group photo to Flickr.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
Problem with DATE type in Oracle   Message List  
Reply | Forward Message #71 of 107 |
Re: Problem with DATE type in Oracle

I solved the problem, by replacing the Rails-generated
"datetime_select" with "date_select" in _form.rhtml.

--- In RubyOnRails@yahoogroups.com, "gers32" <cbu@...> wrote:
>
> 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.
>





Tue Aug 21, 2007 2:47 pm

gers32
Offline Offline
Send Email Send Email

Forward
Message #71 of 107 |
Expand Messages Author Sort by Date

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...
gers32
Offline Send Email
Aug 21, 2007
12:59 pm

I solved the problem, by replacing the Rails-generated "datetime_select" with "date_select" in _form.rhtml....
gers32
Offline Send Email
Aug 21, 2007
3:15 pm
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help