As an extra hint: Can this be caused by a wrongly configured NLS_LANG setting on my Windows client, causing ActiveRecord to get an 'unexpected' date format back?
On Mon, Sep 14, 2009 at 5:03 PM, rheenen <[email protected]> wrote: > Hello all. I am a novice Ruby on Rails programmer, starting my first > project using a legacy Oracle 10 database. Using 'reverse_scaffold' I > have created the models/controllers/views for my existing Oracle > tables. > > All seems to work well, using /model/index, /model/show for most of my > tables, *except* when one of the tables contains a Oracle 'date' > column, for example when going to ~/filelists/show/959: > > ActiveRecord::StatementInvalid in FilelistsController#show > ArgumentError: invalid date: SELECT * FROM filelist WHERE > (filelist.fllid = 959) > > I already tried updating the record with NULL values for the date > columns, or with actual valid date values, but ActiveRecord *or* > OracleEnhancedAdapter seems to refuse to load my date values. > > Is this a known issue or is there something else I should do in my > model file to make date support work? > > Thanks! --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---

