From: Jason Vogel Date: 2007-02-02T15:45:05+09:00 Subject: How to Convert an Object into a Hash I have an object (happens to be an ActiveRecord Model), but this is not a Rails question. params = { :contract_id => contract_payment['contract_id'], :amount => contract_payment['amount'] } params = contract_payment.to_hash # This is what I want to do... I want to "automagically" convert the contract_payment object to a hash. I would really appreciate any help. Thanks, Jason