[Ironruby-core] Ordered active record attributes hash

Eduardo Blumenfeld lists at ruby-forum.com
Fri Jul 30 18:26:21 EDT 2010

Hi All:

I'm trying to traverse the active record attributes hash in the order it
was created.
a = Table.find_by_sql("select * from sometable")

a.each { |row| puts row.to_yaml
# prints the the attributes in the order coming from the select
# which is exactly how I would like to process the columns
puts row.attributes.to_yaml
# shows the attributes in sorted order...

Is that a problem with activerecord?

how I could solve the issue?
Posted via http://www.ruby-forum.com/.

More information about the Ironruby-core mailing list