On 19 Mar 2009, at 13:16, vimal wrote:
> > ---------------------------------------------------------------------------------- > so that before saving i call a function to format the array to > string and store it using attr_accessor method > I printed the "self.lists_selected" and i got "1,2,3,4" as the > result > > I thought this would do my job > I am wondering why 'nil' is stored in the table. > Please help me out off this guys. Because your attr_accessor overwrote the accessor which saves to a database column with one that saves to an instance variable > > > Regards, > Vimal Das > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk@googlegroups.com To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---