[Rails] Re: serialisation

Marc Isemann
Tue, 15 Aug 2006 23:15:23 -0000

the output on linux

<% @contract.addons.each do |addon| %>
<%= addon.inspect %>
<% end %>

#{"name"=>"Cleaning Fee",
"updated_at"=>"2006-02-08 15:52:37",
"per_person"=>"0",
"force_cart"=>"1",
"price"=>"40.00", "id"=>"1",
"onetime"=>"1", "user_id"=>"2",
"room_id"=>"1",
"created_at"=>"2006-02-08 15:52:37"}}>
#{"name"=>"Tax",
"updated_at"=>"2006-02-17 15:54:36",
"per_person"=>"1",
"force_cart"=>"1",
"price"=>"2.00", "id"=>"2",
"onetime"=>"0",
"user_id"=>"2", "room_id"=>"1",
"created_at"=>"2006-02-17 15:54:36"}}>

--
Posted via http://www.ruby-forum.com/.