Displaying 1 result from an estimated 1 matches for "error_d".
Did you mean:
  error_r
  
2009 Jan 09
2
Confused about to_xml() in ActiveRecord::Base subclass
...und, 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 following as how to override to_xml:
    def to_xml(options = {})...