rails store array in to database field
i want to store an array into database field,

i tried following method,

> class MyStuff < ActiveRecord::Base  
> serialize   :things end
> 

    stuff = MyStuff.new 
     stuff.things << "pen" 
      stuff.things << "paper"
     stuff.save


i get error "The error occurred while evaluating nil.<<"

is there any other approach..
thanks
rails store array in to database field
===

i want to store an array into database field,

i tried following method,

> class MyStuff < ActiveRecord::Base  
> serialize   :things end
> 

    stuff = MyStuff.new 
     stuff.things << "pen" 
      stuff.things << "paper"
     stuff.save


i get error "The error occurred while evaluating nil.<<"

is there any other approach..
thanks