HI all,
I not understand a method serialize.
Anyone have any example using de serialize…
Thanks
HI all,
I not understand a method serialize.
Anyone have any example using de serialize…
Thanks
From the most excellent “Agile Web D. 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’ ]
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs