I am trying to change attribute of all objects in AR collection inside
a map block
see:
but attributes are not being updated in Rails 2.2
This was working in earlier versions of rails
Any help is appreciated
I am trying to change attribute of all objects in AR collection inside
a map block
see:
but attributes are not being updated in Rails 2.2
This was working in earlier versions of rails
Any help is appreciated
Sorry,
Your information was not sufficient to help you.
Thanks,
Sadeesh.
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 [email protected]
On Dec 3, 1:09 pm, Hasham [email protected] 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
First, foremost and [0] - Space Vatican (although
I don’t think that would account for your exact snippet)
Fred
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