>From the most excellent "Agile Web Development with Rails" book,
p. 206:
class Purchase < ActiveRecord::Base
serialize :last_five
# ...
end
purchase = Purchase.new
purchase.last_five = [ ''shoes'', ''shirt'',
''socks'', ''ski mask'',
''shorts'' ]
On 1/24/06, Bruno Alberto <bleerloko@hotmail.com>
wrote:>
> HI all,
>
>
> I not understand a method serialize.
> Anyone have any example using de serialize.....
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
http://wrath.rubyonrails.org/pipermail/rails/attachments/20060124/b5d3e9c3/attachment.html