HI all,

I not understand a method serialize.
Anyone have any example using de serialize…


From the most excellent “Agile Web D. with Rails” book, p. 206:

class Purchase < ActiveRecord::Base
serialize :last_five


purchase =
purchase.last_five = [ ‘shoes’, ‘shirt’, ‘socks’, ‘ski mask’, ‘shorts’ ]

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs