Displaying 1 result from an estimated 1 matches for "legacy_error".
Did you mean:
  legacy_errors
  
2009 Jan 09
2
Confused about to_xml() in ActiveRecord::Base subclass
...own to_xml().  However, from
the limited examples I''ve found, I just don''t understand how to
actually reference the columns for the records in my record set.
Here''s a simplified view of my ActiveRecord object:
class Errors < ActiveRecord::Base
  set_table_name "legacy_errors"
  # legacy_errors has three columns: id, msg, error_date
  # Since the default to_xml is generating error_dates in the format
"Mon Nov 03 00:00:00 -0600 2008",
  #    and I cannot seem to force a different behavior, I want to
create my own to_xml.
  # Examples online show the fol...