I am trying to change attribute of all objects in AR collection inside a map block see: http://pastie.org/329737 but attributes are not being updated in Rails 2.2 This was working in earlier versions of rails Any help is appreciated --~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Sorry, Your information was not sufficient to help you. Thanks, Sadeesh. On Dec 3, 6:09 pm, Hasham <hash...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> I am trying to change attribute of all objects in AR collection inside > a map block > see: > > http://pastie.org/329737 > > but attributes are not being updated in Rails 2.2 > > This was working in earlier versions of rails > > Any help is appreciated--~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Here, Anyway I guess you should call the save method on it like ''user.save''. Thanks, Sadeesh. On Dec 3, 6:45 pm, sadeesh kumar viswanathan <sadath...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Sorry, > Your information was not sufficient to help you. > > Thanks, > Sadeesh. > > On Dec 3, 6:09 pm, Hasham <hash...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > I am trying to change attribute of all objects in AR collection inside > > a map block > > see: > > >http://pastie.org/329737 > > > but attributes are not being updated in Rails 2.2 > > > This was working in earlier versions of rails > > > Any help is appreciated--~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
On Dec 3, 1:09 pm, Hasham <hash...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> I am trying to change attribute of all objects in AR collection inside > a map block > see: >First off, why use map when you could use each ? Secondly this looks related to what I wrote at http://www.spacevatican.org/2008/11/15/first-foremost-and-0 (although I don''t think that would account for your exact snippet) Fred> http://pastie.org/329737 > > but attributes are not being updated in Rails 2.2 > > This was working in earlier versions of rails > > Any help is appreciated--~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---