On 19 Jan 2009, at 18:39, James Bond wrote:
> > Frederick Cheung wrote: >> On 19 Jan 2009, at 18:05, James Bond wrote: >> >>> >>> Why this doesn't work? >>> >>> session[:aa][:bb] = "xxx" >> >> probably because session[:aa] is nil >> >> Fred > > > How to "fix" it? > > index 25009 out of string that sounds like session[:aa] is a string. There's nothing wrong with session[:aa][:bb] = "xxx" assuming the objects involved are of the right type, which will be down to the rest of the code in your app Fred > > -- > Posted via http://www.ruby-forum.com/. > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---